blob: 292d598e9d61c4a5423a784f17f73b077b433637 (
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
35
36
37
38
39
40
41
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, poetry-core
}:
buildPythonPackage rec {
pname = "ttp-templates";
version = "0.3.6";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dmulyalin";
repo = "ttp_templates";
rev = "refs/tags/${version}";
hash = "sha256-Pntm/wUv/K0ci8U/+nBUVszuX8KT95gyp+i2N6NshKo=";
};
nativeBuildInputs = [
poetry-core
];
postPatch = ''
# Drop circular dependency on ttp
sed -i '/ttp =/d' pyproject.toml
'';
# Circular dependency on ttp
doCheck = false;
meta = with lib; {
description = "Template Text Parser Templates collections";
homepage = "https://github.com/dmulyalin/ttp_templates";
changelog = "https://github.com/dmulyalin/ttp_templates/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|