From ec02fca53a70b069c5e708a7bdad6859e2c47f53 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 30 Oct 2022 09:08:18 +0100 Subject: [PATCH] python310Packages.mss: disable on older Python releases --- .../development/python-modules/mss/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/mss/default.nix b/pkgs/development/python-modules/mss/default.nix index ef10915f9a62..a707ccefda1a 100644 --- a/pkgs/development/python-modules/mss/default.nix +++ b/pkgs/development/python-modules/mss/default.nix @@ -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 ];