diff options
| author | lucasew <lucas59356@gmail.com> | 2024-07-16 11:37:49 -0300 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-07-19 21:08:26 +0000 |
| commit | 13787b8186584665bd8f2130ae8657a0a2fe2618 (patch) | |
| tree | 932d44170b1cc0aa0938040901ddd9e1e955a3a7 | |
| parent | i3pystatus: nixfmt-rfc-style (diff) | |
| download | nixpkgs-origin/backport-327430-to-release-24.05.tar.gz | |
i3pystatus: applying fixes from reviewsorigin/backport-327430-to-release-24.05
Signed-off-by: lucasew <lucas59356@gmail.com>
(cherry picked from commit ef1a647f32a3ecc2470d1a4118db40f3efeab2c2)
| -rw-r--r-- | pkgs/by-name/i3/i3pystatus/package.nix | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/pkgs/by-name/i3/i3pystatus/package.nix b/pkgs/by-name/i3/i3pystatus/package.nix index 7dd71ba2353f..c6bafa14ff72 100644 --- a/pkgs/by-name/i3/i3pystatus/package.nix +++ b/pkgs/by-name/i3/i3pystatus/package.nix @@ -6,7 +6,7 @@ gobject-introspection, python3Packages, unstableGitUpdater, - fetchpatch, + fetchpatch2, extraLibs ? [ ], }: @@ -15,6 +15,8 @@ python3Packages.buildPythonApplication rec { # https://github.com/enkore/i3pystatus/issues/584 version = "3.35-unstable-2024-06-13"; pname = "i3pystatus"; + pyproject = true; + build-system = [ python3Packages.setuptools ]; src = fetchFromGitHub { owner = "enkore"; @@ -25,22 +27,22 @@ python3Packages.buildPythonApplication rec { patches = [ # absolutifies the path to the test data in buds test so it can be run from anywhere - (fetchpatch { - url = "https://patch-diff.githubusercontent.com/raw/enkore/i3pystatus/pull/869.patch"; - hash = "sha256-irrD+yQui9GV+tnsDD3Gr9zJNJxWtvMIw+Hm0cUt7og="; + (fetchpatch2 { + # https://github.com/enkore/i3pystatus/pull/869 + url = "https://github.com/enkore/i3pystatus/commit/7a39c3527566411eb1b3e4f79191839ac4b0424e.patch"; + hash = "sha256-kSf2Nrypw8CCHC7acDkQXI27178HA3NJlyRWkHyYOGs="; }) ]; - nativeBuildInputs = [ - gobject-introspection - python3Packages.pytestCheckHook - ]; + nativeBuildInputs = [ gobject-introspection ]; buildInputs = [ libpulseaudio libnotify ]; + nativeCheckInputs = [ python3Packages.pytestCheckHook ]; + checkInputs = [ python3Packages.requests ]; propagatedBuildInputs = @@ -78,7 +80,7 @@ python3Packages.buildPythonApplication rec { passthru.updateScript = unstableGitUpdater { }; - meta = with lib; { + meta = { mainProgram = "i3pystatus"; homepage = "https://github.com/enkore/i3pystatus"; description = "A complete replacement for i3status"; @@ -86,11 +88,11 @@ python3Packages.buildPythonApplication rec { i3pystatus is a growing collection of python scripts for status output compatible to i3status / i3bar of the i3 window manager. ''; - license = licenses.mit; - platforms = platforms.linux; - maintainers = [ - maintainers.igsha - maintainers.lucasew + license = lib.licenses.mit; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ + igsha + lucasew ]; }; } |
