Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 785 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, mock 6, pycrypto 7, requests 8, pytestrunner 9, pytest 10, requests-mock 11, typing 12}: 13 14buildPythonPackage rec { 15 pname = "apache-libcloud"; 16 version = "3.1.0"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "1b28j265kvibgxrgxx0gwfm6cmv252c8ph1j2vb0cpms8ph5if5v"; 21 }; 22 23 checkInputs = [ mock pytest pytestrunner requests-mock ]; 24 propagatedBuildInputs = [ pycrypto requests ] ++ lib.optionals isPy27 [ typing ]; 25 26 preConfigure = "cp libcloud/test/secrets.py-dist libcloud/test/secrets.py"; 27 28 # requires a certificates file 29 doCheck = false; 30 31 meta = with lib; { 32 description = "A unified interface to many cloud providers"; 33 homepage = "http://incubator.apache.org/libcloud/"; 34 license = licenses.asl20; 35 }; 36 37}