depot/third_party/nixpkgs/pkgs/development/python-modules/mobi/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

44 lines
752 B
Nix

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