blob: 21483a1df7ed74fe3e286e1e64fdf9e12c8dfb5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
grpcio,
protobuf,
pytest-asyncio,
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "aetcd";
version = "1.0.0a4";
pyproject = true;
src = fetchFromGitHub {
owner = "martyanov";
repo = "aetcd";
tag = "v${version}";
hash = "sha256-g49ppfh8dyGpZeu/HdTDX8RAk5VTcZmqENRpNY12qkg=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "setuptools_scm==6.3.2" "setuptools_scm"
'';
pythonRelaxDeps = [ "protobuf" ];
build-system = [
setuptools
setuptools-scm
];
dependencies = [
grpcio
protobuf
];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "aetcd" ];
disabledTestPaths = [
# Tests require a running ectd instance
"tests/integration/"
];
meta = {
description = "Python asyncio-based client for etcd";
homepage = "https://github.com/martyanov/aetcd";
changelog = "https://github.com/martyanov/aetcd/blob/v${version}/docs/changelog.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
|