2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pillow,
|
|
|
|
xlib,
|
|
|
|
xvfb-run,
|
|
|
|
scrot,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "pyscreeze";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.1.26";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asweigart";
|
|
|
|
repo = "pyscreeze";
|
|
|
|
rev = "28ab707dceecbdd135a9491c3f8effd3a69680af";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-gn3ydjf/msdhIhngGlhK+jhEyFy0qGeDr58E7kM2YZs=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyscreeze" ];
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
scrot
|
|
|
|
xlib
|
|
|
|
xvfb-run
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
checkPhase = ''
|
|
|
|
python -m unittest tests.test_pillow_unavailable
|
|
|
|
xvfb-run python -m unittest tests.test_pyscreeze
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ pillow ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "PyScreeze is a simple, cross-platform screenshot module for Python 2 and 3";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/asweigart/pyscreeze";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ lucasew ];
|
|
|
|
};
|
|
|
|
}
|