From 5be5a8310957371c90a9eb9cd50e721460f2f9f7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 11 May 2022 08:33:46 +0200 Subject: [PATCH] python310Packages.azure-storage-file-share: disable on older Python releases --- .../azure-storage-file-share/default.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/azure-storage-file-share/default.nix b/pkgs/development/python-modules/azure-storage-file-share/default.nix index a5bb566aa07..754fbae5522 100644 --- a/pkgs/development/python-modules/azure-storage-file-share/default.nix +++ b/pkgs/development/python-modules/azure-storage-file-share/default.nix @@ -1,7 +1,7 @@ -{ buildPythonPackage +{ lib +, buildPythonPackage , fetchPypi -, isPy3k -, lib +, pythonOlder # pythonPackages , azure-core @@ -12,12 +12,14 @@ buildPythonPackage rec { pname = "azure-storage-file-share"; version = "12.8.0"; - disabled = !isPy3k; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "sha256-46OEVjMYFUa8A6Qh+yicrqUuXmUaSzsWT4maBFG6Yqg="; + hash = "sha256-46OEVjMYFUa8A6Qh+yicrqUuXmUaSzsWT4maBFG6Yqg="; }; propagatedBuildInputs = [ @@ -28,6 +30,7 @@ buildPythonPackage rec { # requires checkout from monorepo doCheck = false; + pythonImportsCheck = [ "azure.core" "azure.storage" @@ -37,8 +40,6 @@ buildPythonPackage rec { description = "Microsoft Azure File Share Storage Client Library for Python"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ - kamadorueda - ]; + maintainers = with maintainers; [ kamadorueda ]; }; }