depot/third_party/nixpkgs/pkgs/development/python-modules/genanki/default.nix
Default email 21cecf6002 Project import generated by Copybara.
GitOrigin-RevId: dd14e5d78e90a2ccd6007e569820de9b4861a6c2
2021-07-24 08:14:16 -04:00

38 lines
789 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k
, cached-property, frozendict, pystache, pyyaml, pytest, pytest-runner
}:
buildPythonPackage rec {
pname = "genanki";
version = "0.11.0";
src = fetchPypi {
inherit pname version;
sha256 = "f2be87e3c2850bba21627d26728238f9655b448e564f8c70ab47caef558b63ef";
};
propagatedBuildInputs = [
pytest-runner
cached-property
frozendict
pystache
pyyaml
];
checkInputs = [ pytest ];
disabled = !isPy3k;
# relies on upstream anki
doCheck = false;
checkPhase = ''
py.test
'';
meta = with lib; {
homepage = "https://github.com/kerrickstaley/genanki";
description = "Generate Anki decks programmatically";
license = licenses.mit;
maintainers = with maintainers; [ teto ];
};
}