summary refs log tree commit diff
path: root/pkgs/development/python-modules/azure-mgmt-common
diff options
context:
space:
mode:
authorMax Wilson <max.wilson@insight.com>2019-04-29 17:17:22 -0400
committerWael M. Nasreddine <wael.nasreddine@gmail.com>2019-07-16 14:53:24 -0700
commitb0403da8596e62f7adf6c1ce2fa566b942cdfd29 (patch)
tree03b39bc6b194c41afc37017f5d392e521df9789b /pkgs/development/python-modules/azure-mgmt-common
parent53d9338c9ee5847db472f51bec18836b01ebd249 (diff)
downloadnixpkgs-b0403da8596e62f7adf6c1ce2fa566b942cdfd29.tar
nixpkgs-b0403da8596e62f7adf6c1ce2fa566b942cdfd29.tar.gz
nixpkgs-b0403da8596e62f7adf6c1ce2fa566b942cdfd29.tar.bz2
nixpkgs-b0403da8596e62f7adf6c1ce2fa566b942cdfd29.tar.lz
nixpkgs-b0403da8596e62f7adf6c1ce2fa566b942cdfd29.tar.xz
nixpkgs-b0403da8596e62f7adf6c1ce2fa566b942cdfd29.tar.zst
nixpkgs-b0403da8596e62f7adf6c1ce2fa566b942cdfd29.zip
pythonPackages.azure-mgmt-common: refactor
sha differs from what is offered via pip, echo statement no longer
necessary, updated metadata
Diffstat (limited to 'pkgs/development/python-modules/azure-mgmt-common')
-rw-r--r--pkgs/development/python-modules/azure-mgmt-common/default.nix23
1 files changed, 15 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-common/default.nix b/pkgs/development/python-modules/azure-mgmt-common/default.nix
index c11b8707cb1..e948afd91cf 100644
--- a/pkgs/development/python-modules/azure-mgmt-common/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-common/default.nix
@@ -6,6 +6,7 @@
 , azure-mgmt-nspkg
 , requests
 , msrestazure
+, isPy3k
 }:
 
 buildPythonPackage rec {
@@ -15,20 +16,26 @@ buildPythonPackage rec {
   src = fetchPypi {
     inherit pname version;
     extension = "zip";
-    sha256 = "1rmzpz3733wv31rsnqpdy4bbafvk5dhbqx7q0xf62dlz7p0i4f66";
+    sha256 = "c63812c13d9f36615c07f874bc602b733bb516f1ed62ab73189b8f71c6bfbfe6";
   };
 
-  propagatedBuildInputs = [ azure-common azure-mgmt-nspkg requests msrestazure ];
+  propagatedBuildInputs = [
+    azure-common
+    azure-mgmt-nspkg
+    requests
+    msrestazure
+  ];
 
-  postInstall = ''
-    echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
+  postInstall = if isPy3k then "" else ''
     echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
   '';
 
+  doCheck = false;
+
   meta = with pkgs.lib; {
-    description = "Microsoft Azure SDK for Python";
-    homepage = "https://azure.microsoft.com/en-us/develop/python/";
-    license = licenses.asl20;
-    maintainers = with maintainers; [ olcai ];
+    description = "This is the Microsoft Azure Resource Management common code";
+    homepage = https://pypi.org/project/azure-mgmt-common;
+    license = licenses.mit;
+    maintainers = with maintainers; [ olcai mwilsoninsight ];
   };
 }