From 36a981d9baa025c7f3df391aefe764f87457580f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 24 Feb 2023 16:45:40 +0100 Subject: [PATCH] python310Packages.napari-plugin-engine: disable on unsupported Python releases --- .../python-modules/napari-plugin-engine/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/napari-plugin-engine/default.nix b/pkgs/development/python-modules/napari-plugin-engine/default.nix index 226f43397ab3..10a86c8db03a 100644 --- a/pkgs/development/python-modules/napari-plugin-engine/default.nix +++ b/pkgs/development/python-modules/napari-plugin-engine/default.nix @@ -3,17 +3,21 @@ , fetchFromGitHub , setuptools-scm , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "napari-plugin-engine"; version = "0.2.0"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "napari"; repo = pname; - rev = "v${version}"; - sha256 = "sha256-cKpCAEYYRq3UPje7REjzhEe1J9mmrtXs8TBnxWukcNE="; + rev = "refs/tags/v${version}"; + hash = "sha256-cKpCAEYYRq3UPje7REjzhEe1J9mmrtXs8TBnxWukcNE="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version;