pythonPackages.azure-mgmt-storage: refactor

Removed doCheck and updated metadata
This commit is contained in:
Max Wilson 2019-04-29 17:27:10 -04:00 committed by Wael M. Nasreddine
parent 707a567ebd
commit 5ea3e9cac0
No known key found for this signature in database
GPG Key ID: FD437548E0BF0F5F

View File

@ -1,31 +1,35 @@
{ pkgs { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, python , python
, azure-mgmt-common , azure-mgmt-common
, isPy3k
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "3.1.1"; version = "3.3.0";
pname = "azure-mgmt-storage"; pname = "azure-mgmt-storage";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
extension = "zip"; extension = "zip";
sha256 = "22a779cae5e09712b7d62ef9bc3d8907a5666893a8a113b6d9348e933170236f"; sha256 = "1kffay8hr8h3hf78wb1kisvffpwxsxy6lixbgh9dbv0p781sgyh6";
}; };
postInstall = '' postInstall = if isPy3k then "" else ''
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
''; '';
propagatedBuildInputs = [ azure-mgmt-common ]; propagatedBuildInputs = [ azure-mgmt-common ];
meta = with pkgs.lib; { # has no tests
description = "Microsoft Azure SDK for Python"; doCheck = false;
homepage = "https://azure.microsoft.com/en-us/develop/python/";
license = licenses.asl20; meta = with lib; {
maintainers = with maintainers; [ olcai ]; description = "This is the Microsoft Azure Storage Management Client Library";
homepage = https://docs.microsoft.com/en-us/python/api/overview/azure/storage?view=azure-python;
license = licenses.mit;
maintainers = with maintainers; [ olcai mwilsoninsight ];
}; };
} }