See https://github.com/nix-community/nixpkgs-update/issues/477#issuecomment-2967686833 for details.
86 lines
1.6 KiB
Nix
86 lines
1.6 KiB
Nix
{
|
|
buildPythonPackage,
|
|
colorama,
|
|
decorator,
|
|
dunamai,
|
|
fetchFromGitHub,
|
|
funcy,
|
|
git,
|
|
iteration-utilities,
|
|
jinja2,
|
|
jinja2-ansible-filters,
|
|
lib,
|
|
mkdocs-material,
|
|
mkdocs-mermaid2-plugin,
|
|
nix-update-script,
|
|
mkdocstrings,
|
|
packaging,
|
|
pathspec,
|
|
plumbum,
|
|
poetry-core,
|
|
poetry-dynamic-versioning,
|
|
pydantic,
|
|
pygments,
|
|
pyyaml,
|
|
pyyaml-include,
|
|
questionary,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "copier";
|
|
version = "9.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "copier-org";
|
|
repo = "copier";
|
|
tag = "v${version}";
|
|
# Conflict on APFS on darwin
|
|
postFetch = ''
|
|
rm $out/tests/demo/doc/ma*ana.txt
|
|
'';
|
|
hash = "sha256-mezmXrOvfqbZGZadNZklQZt/OEKqRYnwugNkZc88t6o=";
|
|
};
|
|
|
|
POETRY_DYNAMIC_VERSIONING_BYPASS = version;
|
|
|
|
build-system = [
|
|
poetry-core
|
|
poetry-dynamic-versioning
|
|
];
|
|
|
|
dependencies = [
|
|
colorama
|
|
decorator
|
|
dunamai
|
|
funcy
|
|
iteration-utilities
|
|
jinja2
|
|
jinja2-ansible-filters
|
|
mkdocs-material
|
|
mkdocs-mermaid2-plugin
|
|
mkdocstrings
|
|
packaging
|
|
pathspec
|
|
plumbum
|
|
pydantic
|
|
pygments
|
|
pyyaml
|
|
pyyaml-include
|
|
questionary
|
|
];
|
|
|
|
makeWrapperArgs = [ "--suffix PATH : ${lib.makeBinPath [ git ]}" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Library and command-line utility for rendering projects templates";
|
|
homepage = "https://copier.readthedocs.io";
|
|
changelog = "https://github.com/copier-org/copier/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ greg ];
|
|
mainProgram = "copier";
|
|
};
|
|
}
|