Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ pkgs 2, buildPythonPackage 3, fetchPypi 4, python 5, azure-common 6, futures 7, dateutil 8, requests 9, isPy3k 10}: 11 12buildPythonPackage rec { 13 version = "0.20.3"; 14 pname = "azure-storage"; 15 16 src = fetchPypi { 17 inherit pname version; 18 extension = "zip"; 19 sha256 = "06bmw6k2000kln5jwk5r9bgcalqbyvqirmdh9gq4s6nb4fv3c0jb"; 20 }; 21 22 propagatedBuildInputs = [ azure-common dateutil requests ] 23 ++ pkgs.lib.optionals (!isPy3k) [ futures ]; 24 25 postInstall = '' 26 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py 27 ''; 28 29 meta = with pkgs.lib; { 30 description = "Microsoft Azure SDK for Python"; 31 homepage = "https://azure.microsoft.com/en-us/develop/python/"; 32 license = licenses.asl20; 33 maintainers = with maintainers; [ olcai ]; 34 }; 35}