2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
loguru,
|
|
|
|
poetry-core,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mobi";
|
|
|
|
version = "0.3.3";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iscc";
|
|
|
|
repo = "mobi";
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-g1L72MkJdrKQRsEdew+Qsn8LfCn8+cmj2pmY6s4nv2U=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "loguru" ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2024-02-29 20:09:43 +00:00
|
|
|
setuptools
|
2023-10-09 19:29:22 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ loguru ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "mobi" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for unpacking unencrypted mobi files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mobiunpack";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/iscc/mobi";
|
|
|
|
license = licenses.gpl3Only;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
}
|