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