2021-11-29 17:36:51 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cached-property
|
|
|
|
, chevron
|
|
|
|
, fetchPypi
|
|
|
|
, frozendict
|
|
|
|
, pystache
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
2018-09-05 18:33:10 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "genanki";
|
2022-01-05 03:29:40 +01:00
|
|
|
version = "0.13.0";
|
2021-11-29 17:36:51 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-09-05 18:33:10 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-05 03:29:40 +01:00
|
|
|
sha256 = "bfacdcadd7903ed6afce6168e1977e473b431677b358f8fd42e80b48cedd19ab";
|
2018-09-05 18:33:10 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cached-property
|
2021-11-29 17:36:51 +01:00
|
|
|
chevron
|
2018-09-05 18:33:10 +02:00
|
|
|
frozendict
|
|
|
|
pystache
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
2021-11-29 17:36:51 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "'pytest-runner'," ""
|
|
|
|
'';
|
2018-09-05 18:33:10 +02:00
|
|
|
|
|
|
|
# relies on upstream anki
|
2020-11-10 12:37:26 +01:00
|
|
|
doCheck = false;
|
2021-11-29 17:36:51 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"genanki"
|
|
|
|
];
|
2018-09-05 18:33:10 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-09-05 18:33:10 +02:00
|
|
|
description = "Generate Anki decks programmatically";
|
2021-11-29 17:36:51 +01:00
|
|
|
homepage = "https://github.com/kerrickstaley/genanki";
|
2018-09-05 18:33:10 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ teto ];
|
|
|
|
};
|
|
|
|
}
|