python310Packages.mss: disable on older Python releases

This commit is contained in:
Fabian Affolter
2022-10-30 09:08:18 +01:00
committed by GitHub
parent e81347c4ec
commit ec02fca53a
@@ -1,13 +1,19 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k }:
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "mss";
version = "7.0.1";
disabled = !isPy3k;
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-8UzuUokDw7AdO48SCc1JhCL3Hj0NLZLFuTPt07l3ICI=";
hash = "sha256-8UzuUokDw7AdO48SCc1JhCL3Hj0NLZLFuTPt07l3ICI=";
};
# By default it attempts to build Windows-only functionality
@@ -16,10 +22,12 @@ buildPythonPackage rec {
'';
# Skipping tests due to most relying on DISPLAY being set
pythonImportsCheck = [ "mss" ];
pythonImportsCheck = [
"mss"
];
meta = with lib; {
description = "Cross-platform multiple screenshots module in pure Python";
description = "Cross-platform multiple screenshots module";
homepage = "https://github.com/BoboTiG/python-mss";
license = licenses.mit;
maintainers = with maintainers; [ austinbutler ];