2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-15 20:23:31 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchurl
|
|
|
|
, simplejson
|
|
|
|
, pytz
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "etcd";
|
|
|
|
version = "2.0.8";
|
|
|
|
|
|
|
|
# PyPI package is incomplete
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/dsoprea/PythonEtcdClient/archive/${version}.tar.gz";
|
|
|
|
sha256 = "0fi6rxa1yxvz7nwrc7dw6fax3041d6bj3iyhywjgbkg7nadi9i8v";
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e '13,14d;37d' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ simplejson pytz requests ];
|
|
|
|
|
|
|
|
# No proper tests are available
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-15 20:23:31 +01:00
|
|
|
description = "A Python etcd client that just works";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dsoprea/PythonEtcdClient";
|
2018-10-15 20:23:31 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|