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-06-15 15:56:04 +00:00
|
|
|
version = "2.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "dec8517cb18faf4f983dd2ee6636924e472a5644da1480ae871786dfcac244e9";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|