python310Packages.etcd3: init at 0.12.0
Packaged as a dependency for limits.
This commit is contained in:
parent
7d5be92d55
commit
76540491b3
59
pkgs/development/python-modules/etcd3/default.nix
Normal file
59
pkgs/development/python-modules/etcd3/default.nix
Normal file
@ -0,0 +1,59 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, etcd
|
||||
, fetchFromGitHub
|
||||
, grpcio
|
||||
, hypothesis
|
||||
, mock
|
||||
, pifpaf
|
||||
, protobuf
|
||||
, pytestCheckHook
|
||||
, six
|
||||
, tenacity
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "etcd3";
|
||||
version = "0.12.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kragniz";
|
||||
repo = "python-etcd3";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-YM72+fkCDYXl6DORJa/O0sqXqHDWQcFLv2ifQ9kEHBo=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
grpcio
|
||||
protobuf
|
||||
six
|
||||
tenacity
|
||||
];
|
||||
|
||||
# various failures and incompatible with newer hypothesis versions
|
||||
doCheck = false;
|
||||
|
||||
nativeCheckInputs = [
|
||||
etcd
|
||||
hypothesis
|
||||
mock
|
||||
pifpaf
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
pifpaf -e PYTHON run etcd --cluster
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"etcd3"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client for the etcd API v3";
|
||||
homepage = "https://github.com/kragniz/python-etcd3";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
@ -3126,6 +3126,10 @@ self: super: with self; {
|
||||
|
||||
etcd = callPackage ../development/python-modules/etcd { };
|
||||
|
||||
etcd3 = callPackage ../development/python-modules/etcd3 {
|
||||
inherit (pkgs) etcd;
|
||||
};
|
||||
|
||||
ete3 = callPackage ../development/python-modules/ete3 { };
|
||||
|
||||
etelemetry = callPackage ../development/python-modules/etelemetry { };
|
||||
|
Loading…
Reference in New Issue
Block a user