diff options
author | Matthieu Coudron <mattator@gmail.com> | 2018-09-06 01:33:10 +0900 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2018-09-06 18:31:57 +0200 |
commit | 13050ccc0b315082ea20bc418448204b071bb9c8 (patch) | |
tree | a03a478a1bcccd0d62462bacf466de4f8d4333c8 /pkgs/development/python-modules/genanki | |
parent | efdf618330a22f837f0e5e446028e918a5b4dd8a (diff) |
python3Packages.genanki: init at 0.6.0
Library to generate anki flashcards.
Diffstat (limited to 'pkgs/development/python-modules/genanki')
-rw-r--r-- | pkgs/development/python-modules/genanki/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/genanki/default.nix b/pkgs/development/python-modules/genanki/default.nix new file mode 100644 index 0000000000000..bcc462e7237d7 --- /dev/null +++ b/pkgs/development/python-modules/genanki/default.nix @@ -0,0 +1,38 @@ +{ 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 ]; + }; +} |