evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / kaptan / default.nix
blobc27221611b86ea485d0471e66af381bcdfdfad36
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pyyaml,
6   pytestCheckHook,
7   setuptools,
8 }:
10 buildPythonPackage rec {
11   pname = "kaptan";
12   version = "0.6.0";
13   format = "pyproject";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-EBMwpE/e3oiFhvMBC9FFwOxIpIBrxWQp+lSHpndAIfg=";
18   };
20   postPatch = ''
21     sed -i "s/==.*//g" requirements/test.txt
23     substituteInPlace requirements/base.txt --replace 'PyYAML>=3.13,<6' 'PyYAML>=3.13'
24   '';
26   nativeBuildInputs = [ setuptools ];
28   propagatedBuildInputs = [ pyyaml ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   meta = with lib; {
33     description = "Configuration manager for python applications";
34     mainProgram = "kaptan";
35     homepage = "https://kaptan.readthedocs.io/";
36     license = licenses.bsd3;
37     maintainers = [ ];
38   };