blob: 3632bc2ff605324045fd30eb0de63b6a398f2038 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ lib
, python3
, fetchPypi
}:
python3.pkgs.buildPythonApplication rec {
pname = "markdown-anki-decks";
version = "1.1.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-SvKjjE629OwxWsPo2egGf2K6GzlWAYYStarHhA4Ex0w=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'typer = "^0.4.0"' 'typer = "*"'
'';
build-system = with python3.pkgs; [
poetry-core
];
dependencies = with python3.pkgs; [
beautifulsoup4
genanki
markdown
python-frontmatter
typer
] ++ typer.optional-dependencies.all;
# No tests available on Pypi and there is only a failing version assertion test in the repo.
doCheck = false;
pythonImportsCheck = [
"markdown_anki_decks"
];
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;
mainProgram = "mdankideck";
};
}
|