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