nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5}:
6
7buildPythonPackage rec {
8 pname = "ttp-templates";
9 version = "0.1.3";
10 format = "setuptools";
11
12 disabled = pythonOlder "3.7";
13
14 src = fetchFromGitHub {
15 owner = "dmulyalin";
16 repo = "ttp_templates";
17 rev = version;
18 hash = "sha256-Qx+z/srYgD67FjXzYrc8xtA99n8shWK7yWj/r/ETN2U=";
19 };
20
21 postPatch = ''
22 # Drop circular dependency on ttp
23 substituteInPlace setup.py \
24 --replace '"ttp>=0.6.0"' ""
25 '';
26
27 # Circular dependency on ttp
28 doCheck = false;
29
30 meta = with lib; {
31 description = "Template Text Parser Templates collections";
32 homepage = "https://github.com/dmulyalin/ttp_templates";
33 license = licenses.mit;
34 maintainers = with maintainers; [ fab ];
35 };
36}