1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, easyprocess
6, entrypoint2
7, jeepney
8, mss
9, pillow
10}:
11
12buildPythonPackage rec {
13 pname = "pyscreenshot";
14 version = "3.1";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-jA6T8K72amv+Vahqv87WvTlq5LT2zB428EoorSYlWU0=";
19 };
20
21 propagatedBuildInputs = [
22 easyprocess
23 entrypoint2
24 pillow
25 ] ++ lib.optionals (isPy3k) [
26 jeepney
27 mss
28 ];
29
30 # recursive dependency on pyvirtualdisplay
31 doCheck = false;
32
33 pythonImportsCheck = [ "pyscreenshot" ];
34
35 meta = with lib; {
36 description = "python screenshot";
37 homepage = "https://github.com/ponty/pyscreenshot";
38 license = licenses.bsd3;
39 maintainers = with maintainers; [ costrouc ];
40 };
41}