about summary refs log tree commit diff
path: root/pkgs/development/python-modules/xpybutil/default.nix
blob: 4a3f7681ed582dc31ae06a07f2b891f24ea5808e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ 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 = "An incomplete xcb-util port plus some extras";
    license = licenses.wtfpl;
    maintainers = with maintainers; [ artturin ];
  };
}