Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 39 lines 901 B view raw
1{ pkgs 2, buildPythonPackage 3, fetchPypi 4, dateutil 5, futures 6, pyopenssl 7, requests 8, pythonOlder 9, isPy3k 10}: 11 12buildPythonPackage rec { 13 version = "4.0.0"; 14 pname = "azure"; 15 16 src = fetchPypi { 17 inherit pname version; 18 extension = "zip"; 19 sha256 = "7d6afa332fccffe1a9390bcfac5122317eec657c6029f144d794603a81cd0e50"; 20 }; 21 22 propagatedBuildInputs = [ dateutil pyopenssl requests ] 23 ++ pkgs.lib.optionals (!isPy3k) [ futures ]; 24 25 # depends on futures for python 3 (not necissary) 26 patchPhase = if (!isPy3k) then "" else '' 27 sed -i -e "s/'futures'//" setup.py 28 ''; 29 30 # tests are not packaged in pypi release 31 doCheck = false; 32 33 meta = with pkgs.lib; { 34 description = "Microsoft Azure SDK for Python"; 35 homepage = "https://azure.microsoft.com/en-us/develop/python/"; 36 license = licenses.asl20; 37 maintainers = with maintainers; [ olcai ]; 38 }; 39}