nixpkgs/pkgs/by-name/ma/markdown-anki-decks/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, python3
, fetchPypi
}:
python3.pkgs.buildPythonApplication rec {
pname = "markdown-anki-decks";
2022-09-25 16:08:06 +00:00
version = "1.1.1";
2024-04-14 20:32:55 +00:00
pyproject = true;
src = fetchPypi {
inherit pname version;
2022-09-25 16:08:06 +00:00
hash = "sha256-SvKjjE629OwxWsPo2egGf2K6GzlWAYYStarHhA4Ex0w=";
};
2024-04-14 20:32:55 +00:00
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'typer = "^0.4.0"' 'typer = "*"'
'';
build-system = with python3.pkgs; [
poetry-core
];
2024-04-14 20:32:55 +00:00
dependencies = with python3.pkgs; [
beautifulsoup4
2024-09-23 19:38:06 +00:00
colorama
2022-09-25 16:08:06 +00:00
genanki
markdown
python-frontmatter
2022-09-25 16:08:06 +00:00
typer
];
2024-09-23 19:38:06 +00:00
# No tests available on PyPI and there is only a failing version assertion test in the repo.
doCheck = false;
2022-09-25 16:08:06 +00:00
pythonImportsCheck = [
"markdown_anki_decks"
];
meta = with lib; {
2022-09-25 16:08:06 +00:00
description = "Tool to convert Markdown files into Anki Decks";
homepage = "https://github.com/lukesmurray/markdown-anki-decks";
2024-04-14 20:32:55 +00:00
changelog = "https://github.com/lukesmurray/markdown-anki-decks/blob/${version}/CHANGELOG.md";
license = licenses.mit;
2024-09-23 19:38:06 +00:00
maintainers = with maintainers; [ totoroot ];
platforms = platforms.unix;
2023-11-27 01:17:53 +00:00
mainProgram = "mdankideck";
};
}