pythonPackages.xlib: refactor move to python-modules
This commit is contained in:
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;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user