summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/readmdict/default.nix
blob: 2548a61379f352b2421e3faefd9f0fade729f0a7 (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,

  poetry-core,
  python-lzo,
  tkinter,

  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "readmdict";
  version = "0.1.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ffreemt";
    repo = "readmdict";
    rev = "v${version}";
    hash = "sha256-1/f+o2bVscT3EA8XQyS2hWjhimLRzfIBM6u2O7UqwcA=";
  };

  nativeBuildInputs = [ poetry-core ];

  propagatedBuildInputs = [
    python-lzo
    tkinter
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "readmdict" ];

  meta = {
    description = "Read mdx/mdd files (repacking of readmdict from mdict-analysis)";
    mainProgram = "readmdict";
    homepage = "https://github.com/ffreemt/readmdict";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}