mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
1090778a43
Diff: https://github.com/dmulyalin/ttp_templates/compare/refs/tags/0.3.1...0.3.2 Changelog: https://github.com/dmulyalin/ttp_templates/releases/tag/0.3.2
42 lines
901 B
Nix
42 lines
901 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, poetry-core
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ttp-templates";
|
|
version = "0.3.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dmulyalin";
|
|
repo = "ttp_templates";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Bm9//hahM1sP/XDUDR7JcGWz0qF8ovkWZU5x/qj0UZg=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|