2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-10-07 09:15:18 +00:00
|
|
|
, isPy3k
|
2020-04-24 23:36:52 +00:00
|
|
|
, EasyProcess
|
2020-10-07 09:15:18 +00:00
|
|
|
, entrypoint2
|
|
|
|
, jeepney
|
|
|
|
, mss
|
|
|
|
, pillow
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyscreenshot";
|
2021-08-22 07:53:02 +00:00
|
|
|
version = "3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-22 07:53:02 +00:00
|
|
|
sha256 = "dd4fdfaeb617483913a6b16845b9f428de5db28758979f4b6cf8f236d292b908";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
EasyProcess
|
2020-10-07 09:15:18 +00:00
|
|
|
entrypoint2
|
|
|
|
pillow
|
|
|
|
] ++ lib.optionals (isPy3k) [
|
|
|
|
jeepney
|
|
|
|
mss
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# recursive dependency on pyvirtualdisplay
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
pythonImportsCheck = [ "pyscreenshot" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "python screenshot";
|
|
|
|
homepage = "https://github.com/ponty/pyscreenshot";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ costrouc ];
|
|
|
|
};
|
|
|
|
}
|