2021-12-06 16:07:01 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, xcffib, pillow }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xpybutil";
|
|
|
|
version = "0.0.6";
|
|
|
|
|
|
|
|
# Pypi only offers a wheel
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BurntSushi";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "17gbqq955fcl29aayn8l0x14azc60cxgkvdxblz9q8x3l50w0xpg";
|
|
|
|
};
|
|
|
|
|
|
|
|
# pillow is a dependency in image.py which is not listed in setup.py
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [ pillow xcffib ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedNativeBuildInputs = [ xcffib ];
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"xpybutil"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/BurntSushi/xpybutil";
|
|
|
|
description = "An incomplete xcb-util port plus some extras";
|
|
|
|
license = licenses.wtfpl;
|
|
|
|
maintainers = with maintainers; [ artturin ];
|
|
|
|
};
|
|
|
|
}
|