about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/readmdict/default.nix
blob: 5ce332df55045d601143cf03ad040a44a754bcf5 (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
45
46
47
48
49
50
51
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub

, poetry-core
, python-lzo
, tkinter

, pytestCheckHook
}:

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

  disabled = pythonOlder "3.6";

  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 = with lib; {
    description = "Read mdx/mdd files (repacking of readmdict from mdict-analysis)";
    mainProgram = "readmdict";
    homepage = "https://github.com/ffreemt/readmdict";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}