blob: fd0b5583b36edad33c16dda1306d0f134598b82e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "pyprland";
version = "1.6.9";
format = "pyproject";
disabled = python3Packages.pythonOlder "3.10";
src = fetchFromGitHub {
owner = "hyprland-community";
repo = "pyprland";
rev = version;
hash = "sha256-qmITBg9csfCIcyTADUOfEo/Nrou01bXHORQ66+Jvodo=";
};
nativeBuildInputs = with python3Packages; [ poetry-core ];
postInstall = ''
# file has shebang but cant be run due to a relative import, has proper entrypoint in /bin
chmod -x $out/${python3Packages.python.sitePackages}/pyprland/command.py
'';
pythonImportsCheck = [
"pyprland"
"pyprland.common"
"pyprland.plugins"
"pyprland.plugins.interface"
];
meta = with lib; {
mainProgram = "pypr";
description = "An hyperland plugin system";
homepage = "https://github.com/hyprland-community/pyprland";
license = licenses.mit;
maintainers = with maintainers; [ iliayar ];
platforms = platforms.linux;
};
}
|