1{ lib 2, buildPythonPackage 3, pythonOlder 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 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "ffreemt"; 22 repo = "readmdict"; 23 rev = "v${version}"; 24 hash = "sha256-1/f+o2bVscT3EA8XQyS2hWjhimLRzfIBM6u2O7UqwcA="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 python-lzo 33 tkinter 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "readmdict" 42 ]; 43 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 }; 50}