Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, azure-common 3, azure-mgmt-core 4, buildPythonPackage 5, fetchPypi 6, isodate 7, pythonOlder 8, typing-extensions 9}: 10 11buildPythonPackage rec { 12 pname = "azure-mgmt-redhatopenshift"; 13 version = "1.4.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-BL2a2L2AwJWvs0V+VpSGaS8//AWMy5m6rdAPDJPbrEo="; 21 }; 22 23 propagatedBuildInputs = [ 24 isodate 25 azure-common 26 azure-mgmt-core 27 ] ++ lib.optionals (pythonOlder "3.8") [ 28 typing-extensions 29 ]; 30 31 pythonNamespaces = "azure.mgmt"; 32 33 # Module has no tests 34 doCheck = false; 35 36 pythonImportsCheck = [ 37 "azure.mgmt.redhatopenshift" 38 ]; 39 40 meta = with lib; { 41 description = "Microsoft Azure Red Hat Openshift Management Client Library for Python"; 42 homepage = "https://github.com/Azure/azure-sdk-for-python"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ jonringer ]; 45 }; 46}