python310Packages.azure-storage-file-share: disable on older Python releases

main
Fabian Affolter 2 years ago committed by GitHub
parent 960778ef79
commit 5be5a83109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      pkgs/development/python-modules/azure-storage-file-share/default.nix

@ -1,7 +1,7 @@
{ buildPythonPackage { lib
, buildPythonPackage
, fetchPypi , fetchPypi
, isPy3k , pythonOlder
, lib
# pythonPackages # pythonPackages
, azure-core , azure-core
@ -12,12 +12,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "azure-storage-file-share"; pname = "azure-storage-file-share";
version = "12.8.0"; version = "12.8.0";
disabled = !isPy3k; format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
extension = "zip"; extension = "zip";
sha256 = "sha256-46OEVjMYFUa8A6Qh+yicrqUuXmUaSzsWT4maBFG6Yqg="; hash = "sha256-46OEVjMYFUa8A6Qh+yicrqUuXmUaSzsWT4maBFG6Yqg=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -28,6 +30,7 @@ buildPythonPackage rec {
# requires checkout from monorepo # requires checkout from monorepo
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [
"azure.core" "azure.core"
"azure.storage" "azure.storage"
@ -37,8 +40,6 @@ buildPythonPackage rec {
description = "Microsoft Azure File Share Storage Client Library for Python"; description = "Microsoft Azure File Share Storage Client Library for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python"; homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ maintainers = with maintainers; [ kamadorueda ];
kamadorueda
];
}; };
} }

Loading…
Cancel
Save