2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-15 19:23:31 +00:00
|
|
|
, buildPythonPackage
|
2021-10-30 14:55:23 +00:00
|
|
|
, fetchFromGitHub
|
2018-10-15 19:23:31 +00:00
|
|
|
, simplejson
|
|
|
|
, pytz
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "etcd";
|
|
|
|
version = "2.0.8";
|
|
|
|
|
|
|
|
# PyPI package is incomplete
|
2021-10-30 14:55:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dsoprea";
|
|
|
|
repo = "PythonEtcdClient";
|
|
|
|
rev = version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-h+jYIRSNdrGkW3tBV1ifIDEXU46EQGyeJoz/Mxym4pI=";
|
2018-10-15 19:23:31 +00:00
|
|
|
};
|
|
|
|
|
2023-02-14 17:49:10 +00:00
|
|
|
postPatch = ''
|
2018-10-15 19:23:31 +00:00
|
|
|
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 19:23:31 +00:00
|
|
|
description = "A Python etcd client that just works";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/dsoprea/PythonEtcdClient";
|
2018-10-15 19:23:31 +00:00
|
|
|
license = licenses.gpl2;
|
2023-02-14 17:49:10 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-15 19:23:31 +00:00
|
|
|
};
|
|
|
|
}
|