depot/third_party/nixpkgs/pkgs/development/python-modules/genanki/default.nix
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

50 lines
891 B
Nix

{ lib
, buildPythonPackage
, cached-property
, chevron
, fetchPypi
, frozendict
, pystache
, pythonOlder
, pyyaml
}:
buildPythonPackage rec {
pname = "genanki";
version = "0.12.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "f787ac440ff37a3ef3389030e992e3527f000f7a69498f797033ccfad07ebe62";
};
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 ];
};
}