1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 pyyaml, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "lnkparse3"; 13 version = "1.5.2"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "Matmaus"; 20 repo = "LnkParse3"; 21 tag = "v${version}"; 22 hash = "sha256-z+qjPs7gHQMAUlnGLN06xZ0hyrAnBF8i0FbaiEpguNE="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ pyyaml ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "LnkParse3" ]; 32 33 meta = with lib; { 34 description = "Windows Shortcut file (LNK) parser"; 35 homepage = "https://github.com/Matmaus/LnkParse3"; 36 changelog = "https://github.com/Matmaus/LnkParse3/blob/${version}/CHANGELOG.md"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}