nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python310Packages.mss: disable on older Python releases

authored by

Fabian Affolter and committed by
GitHub
ec02fca5 e81347c4

+13 -5
+13 -5
pkgs/development/python-modules/mss/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, isPy3k }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pythonOlder 5 + }: 2 6 3 7 buildPythonPackage rec { 4 8 pname = "mss"; 5 9 version = "7.0.1"; 6 - disabled = !isPy3k; 10 + format = "setuptools"; 11 + 12 + disabled = pythonOlder "3.6"; 7 13 8 14 src = fetchPypi { 9 15 inherit pname version; 10 - sha256 = "sha256-8UzuUokDw7AdO48SCc1JhCL3Hj0NLZLFuTPt07l3ICI="; 16 + hash = "sha256-8UzuUokDw7AdO48SCc1JhCL3Hj0NLZLFuTPt07l3ICI="; 11 17 }; 12 18 13 19 # By default it attempts to build Windows-only functionality ··· 22 16 ''; 23 17 24 18 # Skipping tests due to most relying on DISPLAY being set 25 - pythonImportsCheck = [ "mss" ]; 19 + pythonImportsCheck = [ 20 + "mss" 21 + ]; 26 22 27 23 meta = with lib; { 28 - description = "Cross-platform multiple screenshots module in pure Python"; 24 + description = "Cross-platform multiple screenshots module"; 29 25 homepage = "https://github.com/BoboTiG/python-mss"; 30 26 license = licenses.mit; 31 27 maintainers = with maintainers; [ austinbutler ];