37 lines
786 B
Nix
37 lines
786 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ttp-templates";
|
|
version = "0.1.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dmulyalin";
|
|
repo = "ttp_templates";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-yVDJAJXZU4pwvXSKRKUfSHqU23NcdgedOMmynMAD/Po=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Drop circular dependency on ttp
|
|
substituteInPlace setup.py \
|
|
--replace '"ttp>=0.6.0"' ""
|
|
'';
|
|
|
|
# Circular dependency on ttp
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Template Text Parser Templates collections";
|
|
homepage = "https://github.com/dmulyalin/ttp_templates";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|