1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 pytestCheckHook, 6 fetchFromGitea, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "desktop-entry-lib"; 12 version = "3.1"; 13 pyproject = true; 14 disabled = pythonOlder "3.9"; 15 16 # We could use fetchPypi, but then the tests won't run 17 src = fetchFromGitea { 18 domain = "codeberg.org"; 19 owner = "JakobDev"; 20 repo = "desktop-entry-lib"; 21 rev = version; 22 hash = "sha256-+c+FuLv88wc4yVw3iyFFtfbocnWzTCIe2DS0SWoj+VI="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 nativeCheckInputs = [ pytestCheckHook ]; 27 pythonImportsCheck = [ "desktop_entry_lib" ]; 28 29 meta = with lib; { 30 description = "Allows reading and writing .desktop files according to the Desktop Entry Specification"; 31 homepage = "https://codeberg.org/JakobDev/desktop-entry-lib"; 32 changelog = "https://codeberg.org/JakobDev/desktop-entry-lib/releases/tag/${version}"; 33 license = licenses.bsd2; 34 }; 35}