2020-09-27 01:33:49 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mss";
|
2020-11-10 12:11:14 +00:00
|
|
|
version = "6.1.0";
|
2020-09-27 01:33:49 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-10 12:11:14 +00:00
|
|
|
sha256 = "aebd069f3e05667fe9c7b9fa4b1771fe42a4710ce1058ce0236936ce06fa5394";
|
2020-09-27 01:33:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# By default it attempts to build Windows-only functionality
|
|
|
|
prePatch = ''
|
|
|
|
rm mss/windows.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Skipping tests due to most relying on DISPLAY being set
|
|
|
|
pythonImportsCheck = [ "mss" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cross-platform multiple screenshots module in pure Python";
|
2020-11-10 12:11:14 +00:00
|
|
|
homepage = "https://github.com/BoboTiG/python-mss";
|
2020-09-27 01:33:49 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ austinbutler ];
|
|
|
|
};
|
|
|
|
}
|