biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / desktop-entry-lib / default.nix
blob6582d0fd283a519f82ae05126118afa6b93c458b
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   pytestCheckHook,
6   fetchFromGitea,
7   setuptools,
8 }:
10 buildPythonPackage rec {
11   pname = "desktop-entry-lib";
12   version = "3.1";
13   pyproject = true;
14   disabled = pythonOlder "3.9";
16   # We could use fetchPypi, but then the tests won't run
17   src = fetchFromGitea {
18     domain = "codeberg.org";
19     owner = "JakobDev";
20     repo = pname;
21     rev = version;
22     hash = "sha256-+c+FuLv88wc4yVw3iyFFtfbocnWzTCIe2DS0SWoj+VI=";
23   };
25   nativeBuildInputs = [ setuptools ];
26   nativeCheckInputs = [ pytestCheckHook ];
27   pythonImportsCheck = [ "desktop_entry_lib" ];
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     maintainers = with maintainers; [ Madouura ];
35   };