depot/third_party/nixpkgs/pkgs/by-name/py/pyprland/package.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

39 lines
1 KiB
Nix

{ lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "pyprland";
version = "1.7.0";
format = "pyproject";
disabled = python3Packages.pythonOlder "3.10";
src = fetchFromGitHub {
owner = "hyprland-community";
repo = "pyprland";
rev = "refs/tags/${version}";
hash = "sha256-xegMT8+rUMJ8mJDpMT4aLNFy4Atd1Qoe+40OxiociiE=";
};
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;
};
}