Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 38 lines 937 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, azure-nspkg 5, isPyPy 6, setuptools 7, python 8, isPy3k 9}: 10 11buildPythonPackage rec { 12 version = "1.1.21"; 13 pname = "azure-common"; 14 disabled = isPyPy; 15 16 src = fetchPypi { 17 inherit pname version; 18 extension = "zip"; 19 sha256 = "25d696d2affbf5fe9b13aebe66271fce545e673e7e1eeaaec2d73599ba639d63"; 20 }; 21 22 propagatedBuildInputs = [ 23 azure-nspkg 24 ] ++ lib.optionals (!isPy3k) [ setuptools ]; # need for namespace lookup 25 26 postInstall = if isPy3k then "" else '' 27 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py 28 ''; 29 30 doCheck = false; 31 32 meta = with lib; { 33 description = "This is the Microsoft Azure common code"; 34 homepage = https://github.com/Azure/azure-sdk-for-python/tree/master/azure-common; 35 license = licenses.mit; 36 maintainers = with maintainers; [ olcai mwilsoninsight ]; 37 }; 38}