1{ lib, buildPythonPackage, fetchPypi, isPy3k 2, cached-property, frozendict, pystache, pyyaml, pytest, pytest-runner 3}: 4 5buildPythonPackage rec { 6 pname = "genanki"; 7 version = "0.11.0"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "f2be87e3c2850bba21627d26728238f9655b448e564f8c70ab47caef558b63ef"; 12 }; 13 14 propagatedBuildInputs = [ 15 pytest-runner 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 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}