Files
nixpkgs/pkgs/development/python-modules/donfig/default.nix
Wolfgang Walther c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00

55 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
versioneer,
pyyaml,
cloudpickle,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "donfig";
version = "0.8.1.post1";
pyproject = true;
src = fetchFromGitHub {
owner = "pytroll";
repo = "donfig";
rev = "v${version}";
hash = "sha256-hF4hzI1MTLgUexRIqwBEEEMV7Az2oDkp5GQQ5282vwE=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "versioneer[toml]==0.28" versioneer
'';
build-system = [
setuptools
versioneer
];
dependencies = [
pyyaml
];
nativeCheckInputs = [
cloudpickle
pytestCheckHook
];
pythonImportsCheck = [
"donfig"
];
meta = {
description = "Python library for configuring a package including defaults, env variable loading, and yaml loading";
homepage = "https://github.com/pytroll/donfig";
changelog = "https://github.com/pytroll/donfig/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = [ ];
};
}