Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / kaptan / default.nix
blobc86e2a2d6f3a4c04312bb4bb531163823ab8e8c0
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pyyaml
5 , pytestCheckHook
6 , setuptools
7 }:
9 buildPythonPackage rec {
10   pname = "kaptan";
11   version = "0.6.0";
12   format = "pyproject";
14   src = fetchPypi {
15     inherit pname version;
16     hash = "sha256-EBMwpE/e3oiFhvMBC9FFwOxIpIBrxWQp+lSHpndAIfg=";
17   };
19   postPatch = ''
20     sed -i "s/==.*//g" requirements/test.txt
22     substituteInPlace requirements/base.txt --replace 'PyYAML>=3.13,<6' 'PyYAML>=3.13'
23   '';
25   nativeBuildInputs = [
26     setuptools
27   ];
29   propagatedBuildInputs = [
30     pyyaml
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35   ];
37   meta = with lib; {
38     description = "Configuration manager for python applications";
39     homepage = "https://kaptan.readthedocs.io/";
40     license = licenses.bsd3;
41     maintainers = with maintainers; [ ];
42   };