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