1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 simplejson,
6 pytz,
7 requests,
8}:
9
10buildPythonPackage rec {
11 pname = "etcd";
12 version = "2.0.8";
13 format = "setuptools";
14
15 # PyPI package is incomplete
16 src = fetchFromGitHub {
17 owner = "dsoprea";
18 repo = "PythonEtcdClient";
19 rev = version;
20 hash = "sha256-h+jYIRSNdrGkW3tBV1ifIDEXU46EQGyeJoz/Mxym4pI=";
21 };
22
23 postPatch = ''
24 sed -i -e '13,14d;37d' setup.py
25 '';
26
27 propagatedBuildInputs = [
28 simplejson
29 pytz
30 requests
31 ];
32
33 # No proper tests are available
34 doCheck = false;
35
36 meta = with lib; {
37 description = "Python etcd client that just works";
38 homepage = "https://github.com/dsoprea/PythonEtcdClient";
39 license = licenses.gpl2;
40 maintainers = [ ];
41 };
42}