13050ccc0b
Library to generate anki flashcards.
39 lines
778 B
Nix
39 lines
778 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
|
, cached-property, frozendict, pystache, pyyaml, pytest, pytestrunner
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "genanki";
|
|
version = "0.6.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0xj8yd3acl8h457sh42balvcd0z4mg5idd4q63f7qlfzc5wgbb74";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pytestrunner
|
|
cached-property
|
|
frozendict
|
|
pystache
|
|
pyyaml
|
|
];
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
disabled = !isPy3k;
|
|
|
|
# relies on upstream anki
|
|
doCheck = false;
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://github.com/kerrickstaley/genanki;
|
|
description = "Generate Anki decks programmatically";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ teto ];
|
|
};
|
|
}
|