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";
|
2020-12-29 15:07:52 +00:00
|
|
|
version = "2.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-29 15:07:52 +00:00
|
|
|
sha256 = "bfdc311bd6ec1ee9e3c25ece75b24a749673ad5d5f89ee02950080023054ffd5";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|