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