nixpkgs/pkgs/development/python-modules/azure-multiapi-storage/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

41 lines
887 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy27
, azure-common
, azure-core
, msrest
, msrestazure
, requests
}:
buildPythonPackage rec {
version = "1.0.0";
pname = "azure-multiapi-storage";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
hash = "sha256-x5v3e3/poSm+JMt0SWI1lcM6YAUcP+o2Sn8TluXOyIg=";
};
propagatedBuildInputs = [
azure-common
azure-core
msrest
msrestazure
requests
];
# fix namespace
pythonNamespaces = [ "azure.multiapi" ];
# no tests included
doCheck = false;
pythonImportsCheck = [ "azure.common" "azure.multiapi.storage" ];
meta = with lib; {
description = "Microsoft Azure Storage Client Library for Python with multi API version support.";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}