Files
2026-10-24 12:07:36 +02:00

53 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyhamcrest,
pytestCheckHook,
setuptools,
toml,
}:
buildPythonPackage (finalAttrs: {
pname = "confight";
version = "2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Avature";
repo = "confight";
tag = finalAttrs.version;
hash = "sha256-3tsTVCtnFk9qNv3oGg96OKoRIke0Q//pW3iZAdh1g4s=";
};
build-system = [ setuptools ];
dependencies = [ toml ];
nativeCheckInputs = [
pyhamcrest
pytestCheckHook
];
pythonImportsCheck = [ "confight" ];
preCheck = ''
export PATH="$PATH:$out/bin";
'';
disabledTests = [
# CLI output issue
"test_it_should_print_help"
"test_it_should_show_config"
];
meta = {
description = "Python context manager for managing pid files";
homepage = "https://github.com/Avature/confight";
changelog = "https://github.com/Avature/confight/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mkg20001 ];
mainProgram = "confight";
};
})