5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
52 lines
971 B
Nix
52 lines
971 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
urllib3,
|
|
dnspython,
|
|
pytestCheckHook,
|
|
etcd_3_4,
|
|
mock,
|
|
pyopenssl,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "python-etcd";
|
|
version = "0.5.0-unstable-2023-10-31";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jplana";
|
|
repo = "python-etcd";
|
|
rev = "5aea0fd4461bd05dd96e4ad637f6be7bceb1cee5";
|
|
hash = "sha256-eVirStLOPTbf860jfkNMWtGf+r0VygLZRjRDjBMCVKg=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
urllib3
|
|
dnspython
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
etcd_3_4
|
|
mock
|
|
pyopenssl
|
|
];
|
|
|
|
preCheck = ''
|
|
for file in "test_auth" "integration/test_simple"; do
|
|
substituteInPlace src/etcd/tests/$file.py \
|
|
--replace-fail "assertEquals" "assertEqual"
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python client for Etcd";
|
|
homepage = "https://github.com/jplana/python-etcd";
|
|
license = licenses.mit;
|
|
};
|
|
}
|