diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-04-20 13:34:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-20 13:34:59 +0200 |
commit | 83e3a40067f39084bcdbfdca3a88e518c40f6ae1 (patch) | |
tree | 0f2978c943754b3646ed0a832a0124e5d9441dda /pkgs/tools/misc/markdown-anki-decks | |
parent | a67592c7c9ba022c8e1e38b98985e6cb6cf32f20 (diff) | |
parent | 1fccf77fdab6873ac8d19cd0f4ea11ef5cbc1d28 (diff) |
Merge pull request #305502 from fabaff/markdown-anki-decks-refactor
markdown-anki-decks: refactor
Diffstat (limited to 'pkgs/tools/misc/markdown-anki-decks')
-rw-r--r-- | pkgs/tools/misc/markdown-anki-decks/default.nix | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/pkgs/tools/misc/markdown-anki-decks/default.nix b/pkgs/tools/misc/markdown-anki-decks/default.nix index 082bdf5a5f98a..3632bc2ff6053 100644 --- a/pkgs/tools/misc/markdown-anki-decks/default.nix +++ b/pkgs/tools/misc/markdown-anki-decks/default.nix @@ -6,18 +6,23 @@ python3.pkgs.buildPythonApplication rec { pname = "markdown-anki-decks"; version = "1.1.1"; - format = "pyproject"; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-SvKjjE629OwxWsPo2egGf2K6GzlWAYYStarHhA4Ex0w="; }; - nativeBuildInputs = with python3.pkgs; [ + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'typer = "^0.4.0"' 'typer = "*"' + ''; + + build-system = with python3.pkgs; [ poetry-core ]; - propagatedBuildInputs = with python3.pkgs; [ + dependencies = with python3.pkgs; [ beautifulsoup4 genanki markdown @@ -25,11 +30,6 @@ python3.pkgs.buildPythonApplication rec { typer ] ++ typer.optional-dependencies.all; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace 'typer = "^0.4.0"' 'typer = "*"' - ''; - # No tests available on Pypi and there is only a failing version assertion test in the repo. doCheck = false; @@ -40,6 +40,7 @@ python3.pkgs.buildPythonApplication rec { meta = with lib; { description = "Tool to convert Markdown files into Anki Decks"; homepage = "https://github.com/lukesmurray/markdown-anki-decks"; + changelog = "https://github.com/lukesmurray/markdown-anki-decks/blob/${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ ]; platforms = platforms.unix; |