Files
2026-03-28 08:14:10 +00:00

63 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# tests
catalogue,
hypothesis,
numpy,
pydantic,
pytestCheckHook,
# passthru
nix-update-script,
}:
buildPythonPackage (finalAttrs: {
pname = "confection";
version = "1.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "explosion";
repo = "confection";
tag = "release-v${finalAttrs.version}";
hash = "sha256-64QwxK0Rl67n5vb/CuRJw/42A/SE9/Q5gtqITggYqhg=";
};
build-system = [
setuptools
];
pythonImportsCheck = [ "confection" ];
nativeCheckInputs = [
catalogue
hypothesis
numpy
pydantic
pytestCheckHook
];
passthru = {
updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"release-v(.*)"
];
};
};
meta = {
description = "Library that offers a configuration system";
homepage = "https://github.com/explosion/confection";
changelog = "https://github.com/explosion/confection/releases/tag/${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})