2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, simplejson
|
|
|
|
, pytz
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "etcd";
|
|
|
|
version = "2.0.8";
|
|
|
|
|
|
|
|
# PyPI package is incomplete
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dsoprea";
|
|
|
|
repo = "PythonEtcdClient";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-h+jYIRSNdrGkW3tBV1ifIDEXU46EQGyeJoz/Mxym4pI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e '13,14d;37d' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ simplejson pytz requests ];
|
|
|
|
|
|
|
|
# No proper tests are available
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Python etcd client that just works";
|
|
|
|
homepage = "https://github.com/dsoprea/PythonEtcdClient";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|