Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 43 lines 851 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, isPy27 2, backports_ssl_match_hostname 3, mock 4, paramiko 5, pytest 6, requests 7, six 8, websocket_client 9}: 10 11buildPythonPackage rec { 12 version = "4.0.2"; 13 pname = "docker"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "0r1i46h8x1vfvadayyvmh5hc6mpzgv3vvp6pv4g1wavamya2wnyc"; 18 }; 19 20 propagatedBuildInputs = [ 21 six 22 requests 23 websocket_client 24 paramiko 25 ] ++ stdenv.lib.optional isPy27 backports_ssl_match_hostname; 26 27 checkInputs = [ 28 mock 29 pytest 30 ]; 31 32 # Other tests touch network 33 checkPhase = '' 34 ${pytest}/bin/pytest tests/unit/ 35 ''; 36 37 meta = with stdenv.lib; { 38 description = "An API client for docker written in Python"; 39 homepage = https://github.com/docker/docker-py; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ jonringer ]; 42 }; 43}