blob: 8243191376b4f2be4b97da261b6ea3d99a17439a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
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 = [ ];
};
}
|