nixpkgs/pkgs/by-name/py/pyprland/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.9 KiB
Nix
Raw Normal View History

2023-10-23 18:55:01 +00:00
{ lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "pyprland";
2024-04-04 10:34:01 +00:00
version = "2.1.4";
2023-10-23 18:55:01 +00:00
format = "pyproject";
disabled = python3Packages.pythonOlder "3.10";
src = fetchFromGitHub {
owner = "hyprland-community";
repo = "pyprland";
2024-01-20 02:17:58 +00:00
rev = "refs/tags/${version}";
2024-04-04 10:34:01 +00:00
hash = "sha256-vko8SY5d537bKnpVeJWM3D4WeYCXAvF6tCzlFjKIZRU=";
2023-10-23 18:55:01 +00:00
};
nativeBuildInputs = with python3Packages; [ poetry-core ];
2024-02-20 23:53:11 +00:00
propagatedBuildInputs = with python3Packages; [ aiofiles ];
2023-10-23 18:55:01 +00:00
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
'';
2024-02-05 15:12:08 +00:00
# NOTE: this is required for the imports check below to work properly
HYPRLAND_INSTANCE_SIGNATURE = "dummy";
2023-10-23 18:55:01 +00:00
pythonImportsCheck = [
"pyprland"
2024-02-20 23:53:11 +00:00
"pyprland.adapters"
"pyprland.adapters.menus"
2024-02-05 15:12:08 +00:00
"pyprland.command"
2023-10-23 18:55:01 +00:00
"pyprland.common"
2024-02-05 15:12:08 +00:00
"pyprland.ipc"
2023-10-23 18:55:01 +00:00
"pyprland.plugins"
2024-02-05 15:12:08 +00:00
"pyprland.plugins.experimental"
"pyprland.plugins.expose"
2024-02-20 23:53:11 +00:00
"pyprland.plugins.fetch_client_menu"
2023-10-23 18:55:01 +00:00
"pyprland.plugins.interface"
2024-02-05 15:12:08 +00:00
"pyprland.plugins.layout_center"
"pyprland.plugins.lost_windows"
"pyprland.plugins.magnify"
"pyprland.plugins.monitors"
"pyprland.plugins.monitors_v0"
"pyprland.plugins.pyprland"
"pyprland.plugins.scratchpads"
"pyprland.plugins.shift_monitors"
2024-02-20 23:53:11 +00:00
"pyprland.plugins.shortcuts_menu"
"pyprland.plugins.system_notifier"
2024-02-05 15:12:08 +00:00
"pyprland.plugins.toggle_dpms"
"pyprland.plugins.toggle_special"
"pyprland.plugins.workspaces_follow_focus"
2023-10-23 18:55:01 +00:00
];
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;
};
}