1{ lib
2, buildPythonPackage
3, fetchFromGitHub
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 = fetchFromGitHub {
15 owner = "dsoprea";
16 repo = "PythonEtcdClient";
17 rev = version;
18 hash = "sha256-h+jYIRSNdrGkW3tBV1ifIDEXU46EQGyeJoz/Mxym4pI=";
19 };
20
21 postPatch = ''
22 sed -i -e '13,14d;37d' setup.py
23 '';
24
25 propagatedBuildInputs = [ simplejson pytz requests ];
26
27 # No proper tests are available
28 doCheck = false;
29
30 meta = with lib; {
31 description = "A Python etcd client that just works";
32 homepage = "https://github.com/dsoprea/PythonEtcdClient";
33 license = licenses.gpl2;
34 maintainers = with maintainers; [ ];
35 };
36}