Something went wrong. Try again.
lol
Something went wrong. Try again.
890 B · 48 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ lib, buildPythonPackage, fetchFromGitHub, loguru, hatchling, standard-imghdr, pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "mobi"; version = "0.4.1"; pyproject = true;
src = fetchFromGitHub { owner = "iscc"; repo = "mobi"; tag = "v${version}"; hash = "sha256-Hbw4TX/yKkuxYQ9vZZp/wasDCop8pvyQc5zWloMQbng="; };
build-system = [ hatchling ];
pythonRelaxDeps = [ "loguru" ];
dependencies = [ loguru standard-imghdr ];
pythonRemoveDeps = lib.optionals (pythonOlder "3.13") [ "standard-imghdr" ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mobi" ];
meta = { description = "Library for unpacking unencrypted mobi files"; mainProgram = "mobiunpack"; homepage = "https://github.com/iscc/mobi"; license = lib.licenses.gpl3Only; maintainers = [ ]; };}