2019-07-25 15:45:10 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-09-27 07:50:52 +01:00
|
|
|
, isPy3k
|
2019-07-25 15:45:10 +01:00
|
|
|
, EasyProcess
|
2020-09-27 07:50:52 +01:00
|
|
|
, entrypoint2
|
|
|
|
, jeepney
|
|
|
|
, mss
|
2020-10-01 16:29:05 +01:00
|
|
|
, pillow
|
2019-07-25 15:45:10 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyscreenshot";
|
2020-12-29 03:57:25 +00:00
|
|
|
version = "2.3";
|
2019-07-25 15:45:10 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-29 03:57:25 +00:00
|
|
|
sha256 = "bfdc311bd6ec1ee9e3c25ece75b24a749673ad5d5f89ee02950080023054ffd5";
|
2019-07-25 15:45:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
EasyProcess
|
2020-09-27 07:50:52 +01:00
|
|
|
entrypoint2
|
2020-10-01 16:29:05 +01:00
|
|
|
pillow
|
2020-09-27 07:50:52 +01:00
|
|
|
] ++ lib.optionals (isPy3k) [
|
|
|
|
jeepney
|
|
|
|
mss
|
2019-07-25 15:45:10 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# recursive dependency on pyvirtualdisplay
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-10-01 16:29:05 +01:00
|
|
|
pythonImportsCheck = [ "pyscreenshot" ];
|
|
|
|
|
2019-07-25 15:45:10 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "python screenshot";
|
|
|
|
homepage = "https://github.com/ponty/pyscreenshot";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ costrouc ];
|
|
|
|
};
|
|
|
|
}
|