nixpkgs/pkgs/development/python-modules/genanki/default.nix
Matthieu Coudron 13050ccc0b python3Packages.genanki: init at 0.6.0
Library to generate anki flashcards.
2018-09-06 18:31:57 +02:00

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 ];
};
}