1{ stdenv, buildPythonPackage, fetchPypi, isPy3k
2, cached-property, frozendict, pystache, pyyaml, pytest, pytestrunner
3}:
4
5buildPythonPackage rec {
6 pname = "genanki";
7 version = "0.8.0";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "c7c6c276f182a63a807b52a95f197df12794ff014f48dd287cb51ca2dcbe1b34";
12 };
13
14 propagatedBuildInputs = [
15 pytestrunner
16 cached-property
17 frozendict
18 pystache
19 pyyaml
20 ];
21
22 checkInputs = [ pytest ];
23
24 disabled = !isPy3k;
25
26 # relies on upstream anki
27 doCheck = false;
28 checkPhase = ''
29 py.test
30 '';
31
32 meta = with stdenv.lib; {
33 homepage = "https://github.com/kerrickstaley/genanki";
34 description = "Generate Anki decks programmatically";
35 license = licenses.mit;
36 maintainers = with maintainers; [ teto ];
37 };
38}