1{ lib
2, buildPythonPackage
3, fetchPypi
4, pyyaml
5, pytest
6}:
7
8buildPythonPackage rec {
9 pname = "kaptan";
10 version = "0.5.12";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "1abd1f56731422fce5af1acc28801677a51e56f5d3c3e8636db761ed143c3dd2";
15 };
16
17 postPatch = ''
18 sed -i "s/==.*//g" requirements/test.txt
19
20 substituteInPlace requirements/base.txt --replace 'PyYAML>=3.13,<6' 'PyYAML>=3.13'
21 '';
22
23 propagatedBuildInputs = [ pyyaml ];
24
25 checkInputs = [ pytest ];
26
27 meta = with lib; {
28 description = "Configuration manager for python applications";
29 homepage = "https://kaptan.readthedocs.io/";
30 license = licenses.bsd3;
31 maintainers = with maintainers; [ ];
32 };
33
34}