Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 38 lines 787 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k 2, cached-property, frozendict, pystache, pyyaml, pytest, pytestrunner 3}: 4 5buildPythonPackage rec { 6 pname = "genanki"; 7 version = "0.10.1"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "ced1ddcaecc37289c65c26affb20027705e3821e692327e354e0d5b9b0fd8446"; 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 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}