nixpkgs/pkgs/development/python-modules/genanki/default.nix
2020-12-03 20:52:43 +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.0";
src = fetchPypi {
inherit pname version;
sha256 = "b4049621469be115bb13b6ff90994c4c68ef9e7e72e6a98d4a3ada629f163a11";
};
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 ];
};
}