Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / readmdict / default.nix
blobb7d61f8c8f57d4f29c96ecc04daf998e74b2e570
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
6 , poetry-core
7 , python-lzo
8 , tkinter
10 , pytestCheckHook
13 buildPythonPackage rec {
14   pname = "readmdict";
15   version = "0.1.1";
16   pyproject = true;
18   disabled = pythonOlder "3.6";
20   src = fetchFromGitHub {
21     owner = "ffreemt";
22     repo = "readmdict";
23     rev = "v${version}";
24     hash = "sha256-1/f+o2bVscT3EA8XQyS2hWjhimLRzfIBM6u2O7UqwcA=";
25   };
27   nativeBuildInputs = [
28     poetry-core
29   ];
31   propagatedBuildInputs = [
32     python-lzo
33     tkinter
34   ];
36   nativeCheckInputs = [
37     pytestCheckHook
38   ];
40   pythonImportsCheck = [
41     "readmdict"
42   ];
44   meta = with lib; {
45     description = "Read mdx/mdd files (repacking of readmdict from mdict-analysis)";
46     homepage = "https://github.com/ffreemt/readmdict";
47     license = licenses.mit;
48     maintainers = with maintainers; [ paveloom ];
49   };