2021-01-25 08:26:54 +00:00
|
|
|
{
|
|
|
|
lib,
|
2018-10-15 20:23:31 +01:00
|
|
|
buildPythonPackage,
|
2021-10-30 15:55:23 +01:00
|
|
|
fetchFromGitHub,
|
2018-10-15 20:23:31 +01:00
|
|
|
simplejson,
|
|
|
|
pytz,
|
|
|
|
requests,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "etcd";
|
|
|
|
version = "2.0.8";
|
2023-12-07 03:53:02 +00:00
|
|
|
format = "setuptools";
|
2018-10-15 20:23:31 +01:00
|
|
|
|
|
|
|
# PyPI package is incomplete
|
2021-10-30 15:55:23 +01: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 20:23:31 +01:00
|
|
|
};
|
|
|
|
|
2023-02-14 17:49:10 +00:00
|
|
|
postPatch = ''
|
2018-10-15 20:23:31 +01: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 20:23:31 +01:00
|
|
|
description = "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;
|
2024-07-28 15:44:11 +01:00
|
|
|
maintainers = [ ];
|
2018-10-15 20:23:31 +01:00
|
|
|
};
|
|
|
|
}
|