2018-09-05 17:33:10 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, cached-property, frozendict, pystache, pyyaml, pytest, pytestrunner
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "genanki";
|
2019-04-24 17:42:48 +01:00
|
|
|
version = "0.6.4";
|
2018-09-05 17:33:10 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-24 17:42:48 +01:00
|
|
|
sha256 = "6d17761e06aca2d9acb588acfdce33fd3d05571338825760622c99fc7210f15a";
|
2018-09-05 17:33:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytestrunner
|
|
|
|
cached-property
|
|
|
|
frozendict
|
|
|
|
pystache
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
# relies on upstream anki
|
|
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-04-15 00:25:45 +01:00
|
|
|
homepage = https://github.com/kerrickstaley/genanki;
|
2018-09-05 17:33:10 +01:00
|
|
|
description = "Generate Anki decks programmatically";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ teto ];
|
|
|
|
};
|
|
|
|
}
|