depot/third_party/nixpkgs/pkgs/development/python-modules/pyscreenshot/default.nix
Default email 1693fb2285 Project import generated by Copybara.
GitOrigin-RevId: 420f89ceb267b461eed5d025b6c3c0e57703cc5c
2020-10-07 11:15:18 +02:00

41 lines
750 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, EasyProcess
, entrypoint2
, jeepney
, mss
, pillow
}:
buildPythonPackage rec {
pname = "pyscreenshot";
version = "2.2";
src = fetchPypi {
inherit pname version;
sha256 = "dec8517cb18faf4f983dd2ee6636924e472a5644da1480ae871786dfcac244e9";
};
propagatedBuildInputs = [
EasyProcess
entrypoint2
pillow
] ++ lib.optionals (isPy3k) [
jeepney
mss
];
# recursive dependency on pyvirtualdisplay
doCheck = false;
pythonImportsCheck = [ "pyscreenshot" ];
meta = with lib; {
description = "python screenshot";
homepage = "https://github.com/ponty/pyscreenshot";
license = licenses.bsd3;
maintainers = with maintainers; [ costrouc ];
};
}