Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 32 lines 761 B view raw
1{ pkgs 2, buildPythonPackage 3, fetchPypi 4, azure-nspkg 5, isPyPy 6, python 7}: 8 9buildPythonPackage rec { 10 version = "1.1.18"; 11 pname = "azure-common"; 12 disabled = isPyPy; 13 14 src = fetchPypi { 15 inherit pname version; 16 extension = "zip"; 17 sha256 = "5fd62ae10b1add97d3c69af970328ec3bd869184396bcf6bfa9c7bc94d688424"; 18 }; 19 20 propagatedBuildInputs = [ azure-nspkg ]; 21 22 postInstall = '' 23 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py 24 ''; 25 26 meta = with pkgs.lib; { 27 description = "Microsoft Azure SDK for Python"; 28 homepage = "https://azure.microsoft.com/en-us/develop/python/"; 29 license = licenses.asl20; 30 maintainers = with maintainers; [ olcai ]; 31 }; 32}