39 lines
791 B
Nix
39 lines
791 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
|
, cached-property, frozendict, pystache, pyyaml, pytest, pytestrunner
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "genanki";
|
|
version = "0.7.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "32ee8063b1d3b5cd95c117c5a4aa812940e3d3c0daa3d535cd6633c1025a59bc";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|