summary refs log tree commit diff
path: root/pkgs/development/python-modules/kaptan/default.nix
blob: aada19dd45b2f028147941d35bb9b70a9eb2c9c2 (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
{ stdenv
, buildPythonPackage
, fetchPypi
, pyyaml
}:

buildPythonPackage rec {
  pname = "kaptan";
  version = "0.5.11";

  src = fetchPypi {
    inherit pname version;
    sha256 = "8403d6e48200c3f49cb6d6b3dcb5898aa5ab9d820831655bf9a2403e00cd4207";
  };

  # https://github.com/emre/kaptan/pull/151
  postPatch = ''
    substituteInPlace requirements/base.txt \
      --replace "PyYAML>=3.13,<4" "PyYAML>=3.13"
  '';

  propagatedBuildInputs = [ pyyaml ];

  # No tests in archive
  doCheck = false;

  meta = with stdenv.lib; {
    description = "Configuration manager for python applications";
    homepage = https://kaptan.readthedocs.io/;
    license = licenses.bsd3;
    maintainers = with maintainers; [ ];
  };

}