blob: c86e2a2d6f3a4c04312bb4bb531163823ab8e8c0 (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, fetchPypi
, pyyaml
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "kaptan";
version = "0.6.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-EBMwpE/e3oiFhvMBC9FFwOxIpIBrxWQp+lSHpndAIfg=";
};
postPatch = ''
sed -i "s/==.*//g" requirements/test.txt
substituteInPlace requirements/base.txt --replace 'PyYAML>=3.13,<6' 'PyYAML>=3.13'
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
pyyaml
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Configuration manager for python applications";
homepage = "https://kaptan.readthedocs.io/";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}
|