bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
41 lines
834 B
Nix
41 lines
834 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
xcffib,
|
|
pillow,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xpybutil";
|
|
version = "0.0.6";
|
|
format = "setuptools";
|
|
|
|
# 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
|
|
propagatedBuildInputs = [
|
|
pillow
|
|
xcffib
|
|
];
|
|
|
|
propagatedNativeBuildInputs = [ xcffib ];
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "xpybutil" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/BurntSushi/xpybutil";
|
|
description = "Incomplete xcb-util port plus some extras";
|
|
license = licenses.wtfpl;
|
|
maintainers = with maintainers; [ artturin ];
|
|
};
|
|
}
|