1{
2 lib,
3 buildPythonPackage,
4 cached-property,
5 chevron,
6 fetchPypi,
7 frozendict,
8 pystache,
9 pythonOlder,
10 pyyaml,
11}:
12
13buildPythonPackage rec {
14 pname = "genanki";
15 version = "0.13.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-hNCQQjqIeVIEZb/peECD7ay4014rpRH6Whve8B2Pce0=";
23 };
24
25 propagatedBuildInputs = [
26 cached-property
27 chevron
28 frozendict
29 pystache
30 pyyaml
31 ];
32
33 postPatch = ''
34 substituteInPlace setup.py \
35 --replace "'pytest-runner'," ""
36 '';
37
38 # relies on upstream anki
39 doCheck = false;
40
41 pythonImportsCheck = [ "genanki" ];
42
43 meta = with lib; {
44 description = "Generate Anki decks programmatically";
45 homepage = "https://github.com/kerrickstaley/genanki";
46 license = licenses.mit;
47 maintainers = with maintainers; [ teto ];
48 };
49}