fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / development / python-modules / aetcd / default.nix
blobbc8fc1ce325ecb10d7fa8dd538ee37786318ade6
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   grpcio,
6   protobuf,
7   pytest-asyncio,
8   pytest-cov-stub,
9   pytest-mock,
10   pytestCheckHook,
11   pythonOlder,
12   setuptools,
13   setuptools-scm,
16 buildPythonPackage rec {
17   pname = "aetcd";
18   version = "1.0.0a4";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchFromGitHub {
24     owner = "martyanov";
25     repo = "aetcd";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-g49ppfh8dyGpZeu/HdTDX8RAk5VTcZmqENRpNY12qkg=";
28   };
30   postPatch = ''
31     substituteInPlace setup.py \
32       --replace-fail "setuptools_scm==6.3.2" "setuptools_scm"
33   '';
35   pythonRelaxDeps = [ "protobuf" ];
37   build-system = [
38     setuptools
39     setuptools-scm
40   ];
42   dependencies = [
43     grpcio
44     protobuf
45   ];
47   nativeCheckInputs = [
48     pytest-asyncio
49     pytest-cov-stub
50     pytest-mock
51     pytestCheckHook
52   ];
54   pythonImportsCheck = [ "aetcd" ];
56   disabledTestPaths = [
57     # Tests require a running ectd instance
58     "tests/integration/"
59   ];
61   meta = with lib; {
62     description = "Python asyncio-based client for etcd";
63     homepage = "https://github.com/martyanov/aetcd";
64     changelog = "https://github.com/martyanov/aetcd/blob/v${version}/docs/changelog.rst";
65     license = licenses.asl20;
66     maintainers = with maintainers; [ fab ];
67   };