summary refs log tree commit diff
path: root/pkgs/development/python-modules/mobi/default.nix
blob: 262e724a7b5313645e6c5c7e75c26601e8f80ae3 (plain) (blame)
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
44
{ 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 ];
  };
}