nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 poetry-core,
7 python-lzo,
8 tkinter,
9
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "readmdict";
15 version = "0.1.1";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "ffreemt";
20 repo = "readmdict";
21 rev = "v${version}";
22 hash = "sha256-1/f+o2bVscT3EA8XQyS2hWjhimLRzfIBM6u2O7UqwcA=";
23 };
24
25 nativeBuildInputs = [ poetry-core ];
26
27 propagatedBuildInputs = [
28 python-lzo
29 tkinter
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [ "readmdict" ];
35
36 meta = {
37 description = "Read mdx/mdd files (repacking of readmdict from mdict-analysis)";
38 mainProgram = "readmdict";
39 homepage = "https://github.com/ffreemt/readmdict";
40 license = lib.licenses.mit;
41 maintainers = [ ];
42 };
43}