nixpkgs/pkgs/development/python-modules/genanki/default.nix
2020-12-12 19:58:14 +00:00

39 lines
797 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, isPy3k
, cached-property, frozendict, pystache, pyyaml, pytest, pytestrunner
}:
buildPythonPackage rec {
pname = "genanki";
version = "0.10.1";
src = fetchPypi {
inherit pname version;
sha256 = "ced1ddcaecc37289c65c26affb20027705e3821e692327e354e0d5b9b0fd8446";
};
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 = "https://github.com/kerrickstaley/genanki";
description = "Generate Anki decks programmatically";
license = licenses.mit;
maintainers = with maintainers; [ teto ];
};
}