fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
38 lines
875 B
Nix
38 lines
875 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mss";
|
|
version = "9.0.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-bre5AIzydCiBH6M66zXzM024Hj98wt1J7HxuWpSznxI=";
|
|
};
|
|
|
|
prePatch = ''
|
|
# By default it attempts to build Windows-only functionality
|
|
rm src/mss/windows.py
|
|
'';
|
|
|
|
# Skipping tests due to most relying on DISPLAY being set
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "mss" ];
|
|
|
|
meta = with lib; {
|
|
description = "Cross-platform multiple screenshots module";
|
|
mainProgram = "mss";
|
|
homepage = "https://github.com/BoboTiG/python-mss";
|
|
changelog = "https://github.com/BoboTiG/python-mss/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ austinbutler ];
|
|
};
|
|
}
|