blob: ad16c1a23b05e042747cd8adc0c7280ec98bd2d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
loguru,
poetry-core,
setuptools,
standard-imghdr,
}:
buildPythonPackage rec {
pname = "mobi";
version = "0.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "iscc";
repo = "mobi";
tag = "v${version}";
hash = "sha256-g1L72MkJdrKQRsEdew+Qsn8LfCn8+cmj2pmY6s4nv2U=";
};
pythonRelaxDeps = [ "loguru" ];
dependencies = [ standard-imghdr ];
nativeBuildInputs = [
poetry-core
setuptools
];
propagatedBuildInputs = [ loguru ];
pythonImportsCheck = [ "mobi" ];
meta = {
description = "Library for unpacking unencrypted mobi files";
mainProgram = "mobiunpack";
homepage = "https://github.com/iscc/mobi";
license = lib.licenses.gpl3Only;
maintainers = [ ];
};
}
|