about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ttp/templates.nix
blob: 835548d07842e715d9bfb9c39e769ea59f6cbbf8 (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
{ lib
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
  pname = "ttp-templates";
  version = "0.1.1";
  format = "setuptools";

  src = fetchPypi {
    pname = "ttp_templates";
    inherit version;
    sha256 = "0vg7k733i8jqnfz8mpq8kzr2l7b7drk29zkzik91029f6w7li007";
  };

  # drop circular dependency on ttp
  postPatch = ''
    substituteInPlace setup.py --replace '"ttp>=0.6.0"' ""
  '';

  # circular dependency on ttp
  doCheck = false;

  meta = with lib; {
    description = "Template Text Parser Templates";
    homepage = "https://github.com/dmulyalin/ttp_templates";
    license = licenses.mit;
    maintainers = with maintainers; [ hexa ];
  };
}