1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 nose, 6 mock, 7 pyopenssl, 8 urllib3, 9 dnspython, 10}: 11 12buildPythonPackage rec { 13 pname = "python-etcd"; 14 version = "0.4.5"; 15 format = "setuptools"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "f1b5ebb825a3e8190494f5ce1509fde9069f2754838ed90402a8c11e1f52b8cb"; 20 }; 21 22 buildInputs = [ 23 nose 24 mock 25 pyopenssl 26 ]; 27 28 propagatedBuildInputs = [ 29 urllib3 30 dnspython 31 ]; 32 33 postPatch = '' 34 sed -i '19s/dns/"dnspython"/' setup.py 35 ''; 36 37 # Some issues with etcd not in path even though most tests passed 38 doCheck = false; 39 40 meta = with lib; { 41 description = "A python client for Etcd"; 42 homepage = "https://github.com/jplana/python-etcd"; 43 license = licenses.mit; 44 }; 45}