copier: convert to python package instead of application

+86 -60
+2 -60
pkgs/by-name/co/copier/package.nix
··· 1 { 2 - lib, 3 - git, 4 - python3, 5 - fetchFromGitHub, 6 }: 7 - 8 - python3.pkgs.buildPythonApplication rec { 9 - pname = "copier"; 10 - version = "9.6.0"; 11 - pyproject = true; 12 - 13 - src = fetchFromGitHub { 14 - owner = "copier-org"; 15 - repo = "copier"; 16 - tag = "v${version}"; 17 - # Conflict on APFS on darwin 18 - postFetch = '' 19 - rm $out/tests/demo/doc/ma*ana.txt 20 - ''; 21 - hash = "sha256-mezmXrOvfqbZGZadNZklQZt/OEKqRYnwugNkZc88t6o="; 22 - }; 23 - 24 - POETRY_DYNAMIC_VERSIONING_BYPASS = version; 25 - 26 - build-system = with python3.pkgs; [ 27 - poetry-core 28 - poetry-dynamic-versioning 29 - ]; 30 - 31 - dependencies = with python3.pkgs; [ 32 - colorama 33 - decorator 34 - dunamai 35 - funcy 36 - iteration-utilities 37 - jinja2 38 - jinja2-ansible-filters 39 - mkdocs-material 40 - mkdocs-mermaid2-plugin 41 - mkdocstrings 42 - packaging 43 - pathspec 44 - plumbum 45 - pydantic 46 - pygments 47 - pyyaml 48 - pyyaml-include 49 - questionary 50 - ]; 51 - 52 - makeWrapperArgs = [ "--suffix PATH : ${lib.makeBinPath [ git ]}" ]; 53 - 54 - meta = { 55 - description = "Library and command-line utility for rendering projects templates"; 56 - homepage = "https://copier.readthedocs.io"; 57 - changelog = "https://github.com/copier-org/copier/blob/v${version}/CHANGELOG.md"; 58 - license = lib.licenses.mit; 59 - maintainers = with lib.maintainers; [ greg ]; 60 - mainProgram = "copier"; 61 - }; 62 - }
··· 1 { 2 + python3Packages, 3 }: 4 + python3Packages.toPythonApplication python3Packages.copier
+82
pkgs/development/python-modules/copier/default.nix
···
··· 1 + { 2 + buildPythonPackage, 3 + colorama, 4 + decorator, 5 + dunamai, 6 + fetchFromGitHub, 7 + funcy, 8 + git, 9 + iteration-utilities, 10 + jinja2, 11 + jinja2-ansible-filters, 12 + lib, 13 + mkdocs-material, 14 + mkdocs-mermaid2-plugin, 15 + mkdocstrings, 16 + packaging, 17 + pathspec, 18 + plumbum, 19 + poetry-core, 20 + poetry-dynamic-versioning, 21 + pydantic, 22 + pygments, 23 + pyyaml, 24 + pyyaml-include, 25 + questionary, 26 + }: 27 + 28 + buildPythonPackage rec { 29 + pname = "copier"; 30 + version = "9.6.0"; 31 + pyproject = true; 32 + 33 + src = fetchFromGitHub { 34 + owner = "copier-org"; 35 + repo = "copier"; 36 + tag = "v${version}"; 37 + # Conflict on APFS on darwin 38 + postFetch = '' 39 + rm $out/tests/demo/doc/ma*ana.txt 40 + ''; 41 + hash = "sha256-mezmXrOvfqbZGZadNZklQZt/OEKqRYnwugNkZc88t6o="; 42 + }; 43 + 44 + POETRY_DYNAMIC_VERSIONING_BYPASS = version; 45 + 46 + build-system = [ 47 + poetry-core 48 + poetry-dynamic-versioning 49 + ]; 50 + 51 + dependencies = [ 52 + colorama 53 + decorator 54 + dunamai 55 + funcy 56 + iteration-utilities 57 + jinja2 58 + jinja2-ansible-filters 59 + mkdocs-material 60 + mkdocs-mermaid2-plugin 61 + mkdocstrings 62 + packaging 63 + pathspec 64 + plumbum 65 + pydantic 66 + pygments 67 + pyyaml 68 + pyyaml-include 69 + questionary 70 + ]; 71 + 72 + makeWrapperArgs = [ "--suffix PATH : ${lib.makeBinPath [ git ]}" ]; 73 + 74 + meta = { 75 + description = "Library and command-line utility for rendering projects templates"; 76 + homepage = "https://copier.readthedocs.io"; 77 + changelog = "https://github.com/copier-org/copier/blob/v${version}/CHANGELOG.md"; 78 + license = lib.licenses.mit; 79 + maintainers = with lib.maintainers; [ greg ]; 80 + mainProgram = "copier"; 81 + }; 82 + }
+2
pkgs/top-level/python-packages.nix
··· 2871 2872 coordinates = callPackage ../development/python-modules/coordinates { }; 2873 2874 copykitten = callPackage ../development/python-modules/copykitten { }; 2875 2876 coqpit = callPackage ../development/python-modules/coqpit { };
··· 2871 2872 coordinates = callPackage ../development/python-modules/coordinates { }; 2873 2874 + copier = callPackage ../development/python-modules/copier { }; 2875 + 2876 copykitten = callPackage ../development/python-modules/copykitten { }; 2877 2878 coqpit = callPackage ../development/python-modules/coqpit { };