diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 199e56a179c3..7cb5249a76fd 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -7466,6 +7466,12 @@ githubId = 25505957; name = "Ilian"; }; + iliayar = { + email = "iliayar3@gmail.com"; + github = "iliayar"; + githubId = 17529355; + name = "Ilya Yaroshevskiy"; + }; ilikeavocadoes = { email = "ilikeavocadoes@hush.com"; github = "ilikeavocadoes"; diff --git a/pkgs/by-name/py/pyprland/package.nix b/pkgs/by-name/py/pyprland/package.nix new file mode 100644 index 000000000000..5af31a41de88 --- /dev/null +++ b/pkgs/by-name/py/pyprland/package.nix @@ -0,0 +1,40 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "pyprland"; + version = "1.4.1"; + format = "pyproject"; + + disabled = python3Packages.pythonOlder "3.10"; + + src = fetchFromGitHub { + owner = "hyprland-community"; + repo = "pyprland"; + rev = version; + hash = "sha256-x/Rar80jwBX64pW+uv0edhlC44OP1b1e2vnJLFGlIms="; + }; + + 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" + "pyprland.plugins.ironbar" + ]; + + 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; + }; +}