about summary refs log tree commit diff
path: root/pkgs/development/python-modules/etcd/default.nix
blob: a2c4dc971cbc0145f342426aadd4d457a75fabad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchFromGitHub
, simplejson
, pytz
, requests
}:

buildPythonPackage rec {
  pname = "etcd";
  version = "2.0.8";

  # PyPI package is incomplete
  src = fetchFromGitHub {
    owner = "dsoprea";
    repo = "PythonEtcdClient";
    rev = version;
    sha256 = "sha256-h+jYIRSNdrGkW3tBV1ifIDEXU46EQGyeJoz/Mxym4pI=";
  };

  patchPhase = ''
    sed -i -e '13,14d;37d' setup.py
  '';

  propagatedBuildInputs = [ simplejson pytz requests ];

  # No proper tests are available
  doCheck = false;

  meta = with lib; {
    description = "A Python etcd client that just works";
    homepage = "https://github.com/dsoprea/PythonEtcdClient";
    license = licenses.gpl2;
  };

}