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.

78 lines
2.0 KiB
Nix
Raw Normal View History

{
lib,
fetchFromGitHub,
python3Packages,
2024-05-11 14:07:47 +00:00
nix-update-script,
}:
2023-10-23 18:55:01 +00:00
python3Packages.buildPythonApplication rec {
pname = "pyprland";
version = "2.4.3";
2023-10-23 18:55:01 +00:00
format = "pyproject";
disabled = python3Packages.pythonOlder "3.10";
src = fetchFromGitHub {
owner = "hyprland-community";
repo = "pyprland";
2024-05-08 23:44:15 +00:00
rev = "refs/tags/${version}";
hash = "sha256-0vI8f5XXYi7LG6wMH2Uw05pDbozO2eBzLCuaCHBY7BQ=";
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 ];
2024-11-03 20:51:41 +00:00
pythonRelaxDeps = [
"aiofiles"
];
2024-02-20 23:53:11 +00:00
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
];
2024-05-11 14:07:47 +00:00
passthru.updateScript = nix-update-script {};
2024-05-01 18:57:03 +00:00
meta = {
2023-10-23 18:55:01 +00:00
mainProgram = "pypr";
description = "Hyperland plugin system";
homepage = "https://github.com/hyprland-community/pyprland";
2024-05-01 18:57:03 +00:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
iliayar
johnrtitor
];
2024-05-01 18:57:03 +00:00
platforms = lib.platforms.linux;
2023-10-23 18:55:01 +00:00
};
}