forked from mirrors/nixpkgs
python310Packages.mss: disable on older Python releases
This commit is contained in:
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 ];
|
||||
|
|
Loading…
Reference in a new issue