depot/third_party/nixpkgs/pkgs/development/python-modules/genanki/default.nix
Default email 3e7541c14f Project import generated by Copybara.
GitOrigin-RevId: ff377a78794d412a35245e05428c8f95fef3951f
2022-01-07 12:07:37 +08:00

50 lines
891 B
Nix

{ lib
, buildPythonPackage
, cached-property
, chevron
, fetchPypi
, frozendict
, pystache
, pythonOlder
, pyyaml
}:
buildPythonPackage rec {
pname = "genanki";
version = "0.13.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "bfacdcadd7903ed6afce6168e1977e473b431677b358f8fd42e80b48cedd19ab";
};
propagatedBuildInputs = [
cached-property
chevron
frozendict
pystache
pyyaml
];
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'," ""
'';
# relies on upstream anki
doCheck = false;
pythonImportsCheck = [
"genanki"
];
meta = with lib; {
description = "Generate Anki decks programmatically";
homepage = "https://github.com/kerrickstaley/genanki";
license = licenses.mit;
maintainers = with maintainers; [ teto ];
};
}