Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, azure-common 6, azure-mgmt-core 7, msrest 8, typing-extensions 9}: 10 11buildPythonPackage rec { 12 pname = "azure-mgmt-containerregistry"; 13 version = "10.1.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-VrX9YfYNvlA8+eNqHCp35BAeQZzQKakZs7ZZKwT8oYc="; 21 extension = "zip"; 22 }; 23 24 propagatedBuildInputs = [ 25 azure-common 26 azure-mgmt-core 27 msrest 28 ] ++ lib.optionals (pythonOlder "3.8") [ 29 typing-extensions 30 ]; 31 32 # no tests included 33 doCheck = false; 34 35 pythonImportsCheck = [ 36 "azure.common" 37 "azure.mgmt.containerregistry" 38 ]; 39 40 meta = with lib; { 41 description = "Microsoft Azure Container Registry 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}