mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 10:44:36 +00:00
https://github.com/martyanov/aetcd/blob/v1.0.0/docs/changelog.rst This commit was automatically generated using update-python-libraries.
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
grpcio,
|
|
protobuf,
|
|
pytest-asyncio,
|
|
pytest-cov-stub,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aetcd";
|
|
version = "1.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "martyanov";
|
|
repo = "aetcd";
|
|
tag = "v${version}";
|
|
hash = "sha256-wGs1YG/7gCVMd6iS2RLoMBVJ93aO3dAG1x6/rrhK+C0=";
|
|
};
|
|
|
|
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/${src.tag}/docs/changelog.rst";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|