Files
nixpkgs/pkgs/development/python-modules/aetcd/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

69 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
grpcio,
protobuf,
pytest-asyncio,
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
pythonOlder,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "aetcd";
version = "1.0.0a4";
pyproject = true;
disabled = pythonOlder "3.8";
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 ];
};
}