summary refs log tree commit diff
path: root/pkgs/development/python-modules/azure-mgmt-monitor/default.nix
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-03-16 11:47:03 +0100
committerGitHub <noreply@github.com>2022-03-16 11:47:03 +0100
commit2395dc3ae4152133bbc51e894ae43010cb4ca9e4 (patch)
tree66f02276b25486d265b7d39be4fb65e7073fb140 /pkgs/development/python-modules/azure-mgmt-monitor/default.nix
parent83322df54712c7e7f07724278a5433bb49244e1a (diff)
downloadnixpkgs-2395dc3ae4152133bbc51e894ae43010cb4ca9e4.tar
nixpkgs-2395dc3ae4152133bbc51e894ae43010cb4ca9e4.tar.gz
nixpkgs-2395dc3ae4152133bbc51e894ae43010cb4ca9e4.tar.bz2
nixpkgs-2395dc3ae4152133bbc51e894ae43010cb4ca9e4.tar.lz
nixpkgs-2395dc3ae4152133bbc51e894ae43010cb4ca9e4.tar.xz
nixpkgs-2395dc3ae4152133bbc51e894ae43010cb4ca9e4.tar.zst
nixpkgs-2395dc3ae4152133bbc51e894ae43010cb4ca9e4.zip
python3Packages.azure-mgmt-monitor: disable on older Python releases
Diffstat (limited to 'pkgs/development/python-modules/azure-mgmt-monitor/default.nix')
-rw-r--r--pkgs/development/python-modules/azure-mgmt-monitor/default.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-monitor/default.nix b/pkgs/development/python-modules/azure-mgmt-monitor/default.nix
index 3220a3dfd06..66818ce5b05 100644
--- a/pkgs/development/python-modules/azure-mgmt-monitor/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-monitor/default.nix
@@ -1,22 +1,24 @@
 { lib
 , buildPythonPackage
 , fetchPypi
-, isPy3k
+, pythonOlder
 , msrest
 , msrestazure
 , azure-common
 , azure-mgmt-core
-, azure-mgmt-nspkg
 }:
 
 buildPythonPackage rec {
   pname = "azure-mgmt-monitor";
   version = "3.1.0";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.6";
 
   src = fetchPypi {
     inherit pname version;
     extension = "zip";
-    sha256 = "sha256-ROcUAm0KgIjO2A2XBpS00IeEPgd8x4cjoMfn6X9C+Gw=";
+    hash = "sha256-ROcUAm0KgIjO2A2XBpS00IeEPgd8x4cjoMfn6X9C+Gw=";
   };
 
   propagatedBuildInputs = [
@@ -24,13 +26,13 @@ buildPythonPackage rec {
     msrestazure
     azure-common
     azure-mgmt-core
-  ] ++ lib.optionals (!isPy3k) [
-    azure-mgmt-nspkg
   ];
 
-  pythonNamespaces = [ "azure.mgmt" ];
+  pythonNamespaces = [
+    "azure.mgmt"
+  ];
 
-  # has no tests
+  # Module has no tests
   doCheck = false;
 
   meta = with lib; {