Merge pull request #305502 from fabaff/markdown-anki-decks-refactor
markdown-anki-decks: refactor
This commit is contained in:
commit
83e3a40067
|
@ -6,18 +6,23 @@
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "markdown-anki-decks";
|
pname = "markdown-anki-decks";
|
||||||
version = "1.1.1";
|
version = "1.1.1";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-SvKjjE629OwxWsPo2egGf2K6GzlWAYYStarHhA4Ex0w=";
|
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
|
poetry-core
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
dependencies = with python3.pkgs; [
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
genanki
|
genanki
|
||||||
markdown
|
markdown
|
||||||
|
@ -25,11 +30,6 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
typer
|
typer
|
||||||
] ++ typer.optional-dependencies.all;
|
] ++ 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.
|
# No tests available on Pypi and there is only a failing version assertion test in the repo.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Tool to convert Markdown files into Anki Decks";
|
description = "Tool to convert Markdown files into Anki Decks";
|
||||||
homepage = "https://github.com/lukesmurray/markdown-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;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user