1{ stdenv
2, buildPythonPackage
3, fetchurl
4, simplejson
5, pytz
6, requests
7}:
8
9buildPythonPackage rec {
10 pname = "etcd";
11 version = "2.0.8";
12
13 # PyPI package is incomplete
14 src = fetchurl {
15 url = "https://github.com/dsoprea/PythonEtcdClient/archive/${version}.tar.gz";
16 sha256 = "0fi6rxa1yxvz7nwrc7dw6fax3041d6bj3iyhywjgbkg7nadi9i8v";
17 };
18
19 patchPhase = ''
20 sed -i -e '13,14d;37d' setup.py
21 '';
22
23 propagatedBuildInputs = [ simplejson pytz requests ];
24
25 # No proper tests are available
26 doCheck = false;
27
28 meta = with stdenv.lib; {
29 description = "A Python etcd client that just works";
30 homepage = "https://github.com/dsoprea/PythonEtcdClient";
31 license = licenses.gpl2;
32 };
33
34}