summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyscreenshot/default.nix
blob: 3ca096332aea2cd949806755f32c7fc55641d79a (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
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, EasyProcess
, entrypoint2
, jeepney
, mss
, pillow
}:

buildPythonPackage rec {
  pname = "pyscreenshot";
  version = "2.3";

  src = fetchPypi {
    inherit pname version;
    sha256 = "bfdc311bd6ec1ee9e3c25ece75b24a749673ad5d5f89ee02950080023054ffd5";
  };

  propagatedBuildInputs = [
    EasyProcess
    entrypoint2
    pillow
  ] ++ lib.optionals (isPy3k) [
    jeepney
    mss
  ];

  # recursive dependency on pyvirtualdisplay
  doCheck = false;

  pythonImportsCheck = [ "pyscreenshot" ];

  meta = with lib; {
    description = "python screenshot";
    homepage = "https://github.com/ponty/pyscreenshot";
    license = licenses.bsd3;
    maintainers = with maintainers; [ costrouc ];
  };
}