pythonPackages.xlib: refactor move to python-modules
This commit is contained in:
parent
8bf7a83aae
commit
6426e0f01e
2 changed files with 32 additions and 24 deletions
31
pkgs/development/python-modules/xlib/default.nix
Normal file
31
pkgs/development/python-modules/xlib/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, six
|
||||
, setuptools_scm
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "xlib";
|
||||
version = "0.17";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-xlib";
|
||||
repo = "python-xlib";
|
||||
rev = "${version}";
|
||||
sha256 = "1iiz2nq2hq9x6laavngvfngnmxbgnwh54wdbq6ncx4va7v98liyi";
|
||||
};
|
||||
|
||||
# Tests require `pyutil' so disable them to avoid circular references.
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ six setuptools_scm pkgs.xorg.libX11 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Fully functional X client library for Python programs";
|
||||
homepage = http://python-xlib.sourceforge.net/;
|
||||
license = licenses.gpl2Plus;
|
||||
};
|
||||
|
||||
}
|
|
@ -4143,30 +4143,7 @@ in {
|
|||
|
||||
xcaplib = callPackage ../development/python-modules/xcaplib { };
|
||||
|
||||
xlib = buildPythonPackage (rec {
|
||||
name = "xlib-${version}";
|
||||
version = "0.17";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "python-xlib";
|
||||
repo = "python-xlib";
|
||||
rev = "${version}";
|
||||
sha256 = "1iiz2nq2hq9x6laavngvfngnmxbgnwh54wdbq6ncx4va7v98liyi";
|
||||
};
|
||||
|
||||
# Tests require `pyutil' so disable them to avoid circular references.
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = with self; [ six setuptools_scm pkgs.xorg.libX11 ];
|
||||
|
||||
meta = {
|
||||
description = "Fully functional X client library for Python programs";
|
||||
|
||||
homepage = http://python-xlib.sourceforge.net/;
|
||||
|
||||
license = licenses.gpl2Plus;
|
||||
};
|
||||
});
|
||||
xlib = callPackage ../development/python-modules/xlib { };
|
||||
|
||||
xml2rfc = callPackage ../development/python-modules/xml2rfc { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue