markdown-anki-decks: init at 1.0.0 (#126782)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Jan Tojnar 2021-06-14 16:55:52 +02:00 committed by GitHub
parent a1eefadd39
commit f0545ba9d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{ lib
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "markdown-anki-decks";
version = "1.0.0";
format = "pyproject";
src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "R6T8KOHMb1Neg/RG5JQl9+7LxOkAoZL0L5wvVaqm9O0=";
};
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
genanki
typer
colorama
shellingham
beautifulsoup4
markdown
python-frontmatter
];
postPatch = ''
# No API changes.
substituteInPlace pyproject.toml --replace 'python-frontmatter = "^0.5.0"' 'python-frontmatter = "^1.0.0"'
'';
# No tests available on Pypi and there is only a failing version assertion test in the repo.
doCheck = false;
meta = with lib; {
description = "Simple program to convert markdown files into anki decks";
maintainers = with maintainers; [ jtojnar ];
homepage = "https://github.com/lukesmurray/markdown-anki-decks";
license = licenses.mit;
platforms = platforms.unix;
};
}

View file

@ -17170,6 +17170,8 @@ in
micronucleus = callPackage ../development/tools/misc/micronucleus { };
markdown-anki-decks = callPackage ../tools/misc/markdown-anki-decks { };
micropython = callPackage ../development/interpreters/micropython { };
MIDIVisualizer = callPackage ../applications/audio/midi-visualizer { };