python3Packages.genanki: init at 0.6.0
Library to generate anki flashcards.
This commit is contained in:
parent
efdf618330
commit
13050ccc0b
2 changed files with 40 additions and 0 deletions
38
pkgs/development/python-modules/genanki/default.nix
Normal file
38
pkgs/development/python-modules/genanki/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -298,6 +298,8 @@ in {
|
|||
|
||||
fire = callPackage ../development/python-modules/fire { };
|
||||
|
||||
genanki = callPackage ../development/python-modules/genanki { };
|
||||
|
||||
globus-sdk = callPackage ../development/python-modules/globus-sdk { };
|
||||
|
||||
goocalendar = callPackage ../development/python-modules/goocalendar { };
|
||||
|
|
Loading…
Reference in a new issue