pythonPackages.xlib: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 09:50:45 -04:00
parent 8bf7a83aae
commit 6426e0f01e
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 32 additions and 24 deletions

View 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;
};
}

View file

@ -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 { };