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