depot/third_party/nixpkgs/pkgs/development/python-modules/mobi/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

43 lines
798 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
loguru,
poetry-core,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "mobi";
version = "0.3.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "iscc";
repo = "mobi";
rev = "refs/tags/v${version}";
hash = "sha256-g1L72MkJdrKQRsEdew+Qsn8LfCn8+cmj2pmY6s4nv2U=";
};
pythonRelaxDeps = [ "loguru" ];
nativeBuildInputs = [
poetry-core
setuptools
];
propagatedBuildInputs = [ loguru ];
pythonImportsCheck = [ "mobi" ];
meta = with lib; {
description = "Library for unpacking unencrypted mobi files";
mainProgram = "mobiunpack";
homepage = "https://github.com/iscc/mobi";
license = licenses.gpl3Only;
maintainers = [ ];
};
}