Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 45 lines 928 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pycrypto, 6 requests, 7}: 8 9buildPythonPackage rec { 10 pname = "apache-libcloud"; 11 version = "3.8.0"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-db9MCxI7wiXiTKlfyhw1vjCxnmu4X+6ngUBNQ8QnbJE="; 17 }; 18 19 propagatedBuildInputs = [ 20 pycrypto 21 requests 22 ]; 23 24 preConfigure = '' 25 cp libcloud/test/secrets.py-dist libcloud/test/secrets.py 26 ''; 27 28 postPatch = '' 29 substituteInPlace setup.py \ 30 --replace "setup_requires=pytest_runner," "setup_requires=[]," 31 ''; 32 33 # requires a certificates file 34 doCheck = false; 35 36 pythonImportsCheck = [ "libcloud" ]; 37 38 meta = { 39 description = "Unified interface to many cloud providers"; 40 homepage = "https://libcloud.apache.org/"; 41 changelog = "https://github.com/apache/libcloud/blob/v${version}/CHANGES.rst"; 42 license = lib.licenses.asl20; 43 maintainers = [ ]; 44 }; 45}