2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy3k
|
2018-09-05 17:33:10 +01:00
|
|
|
, cached-property, frozendict, pystache, pyyaml, pytest, pytestrunner
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "genanki";
|
2020-12-12 19:58:14 +00:00
|
|
|
version = "0.10.1";
|
2018-09-05 17:33:10 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-12 19:58:14 +00:00
|
|
|
sha256 = "ced1ddcaecc37289c65c26affb20027705e3821e692327e354e0d5b9b0fd8446";
|
2018-09-05 17:33:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-11-10 11:37:26 +00:00
|
|
|
pytestrunner
|
2018-09-05 17:33:10 +01:00
|
|
|
cached-property
|
|
|
|
frozendict
|
|
|
|
pystache
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
# relies on upstream anki
|
2020-11-10 11:37:26 +00:00
|
|
|
doCheck = false;
|
2018-09-05 17:33:10 +01:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +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 ];
|
|
|
|
};
|
|
|
|
}
|