Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, python, buildPythonPackage, fetchPypi, isPy27 2, fetchpatch 3, azure-common 4, azure-core 5, msrest 6, msrestazure 7, requests 8}: 9 10buildPythonPackage rec { 11 version = "0.4.1"; 12 pname = "azure-multiapi-storage"; 13 disabled = isPy27; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "0h7bzaqwyl3j9xqzjbnwxp59kmg6shxk76pml9kvvqbwsq9w6fx3"; 18 }; 19 20 propagatedBuildInputs = [ 21 azure-common 22 azure-core 23 msrest 24 msrestazure 25 requests 26 ]; 27 28 # Fix to actually install the package 29 patches = [ 30 (fetchpatch { 31 url = "https://github.com/Azure/azure-multiapi-storage-python/pull/29/commits/1c8b08dfc9c5445498de3475dec8820eafbd0ca1.patch"; 32 sha256 = "1f80sdbw4pagrlp9dhcimhp23sdmy0whiba07aa84agkpv4df9ny"; 33 }) 34 ]; 35 36 # fix namespace 37 pythonNamespaces = [ "azure.multiapi" ]; 38 39 # no tests included 40 doCheck = false; 41 42 pythonImportsCheck = [ "azure.common" "azure.multiapi.storage" ]; 43 44 meta = with lib; { 45 description = "Microsoft Azure Storage Client Library for Python with multi API version support."; 46 homepage = "https://github.com/Azure/azure-sdk-for-python"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ jonringer ]; 49 }; 50}