From 1d220ad5523b9cb137b67a8e70deef30da1e12ce Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 24 Nov 2024 22:54:16 +0100 Subject: [PATCH] penelope: init at 0.12.4-unstable-2024-10-21 Penelope Shell Handler https://github.com/brightio/penelope --- pkgs/by-name/pe/penelope/package.nix | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/pe/penelope/package.nix diff --git a/pkgs/by-name/pe/penelope/package.nix b/pkgs/by-name/pe/penelope/package.nix new file mode 100644 index 0000000000000..6df9ef4da7571 --- /dev/null +++ b/pkgs/by-name/pe/penelope/package.nix @@ -0,0 +1,39 @@ +{ + lib, + python3, + fetchFromGitHub, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "penelope"; + version = "0.12.4-unstable-2024-10-21"; + pyproject = true; + + src = fetchFromGitHub { + owner = "brightio"; + repo = "penelope"; + rev = "366534d192ed279cc822da565408ea7ff48d6a60"; + hash = "sha256-pBEYgLyicG34HsIBSt8P9xGJEaEz9ZWyxokNyuO6mdM="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "[project.scripts]" "" \ + --replace-fail 'penelope = "penelope:main"' "" + ''; + + build-system = with python3.pkgs; [ setuptools ]; + + # Project has no tests + doCheck = false; + + meta = { + description = "Penelope Shell Handler"; + homepage = "https://github.com/brightio/penelope"; + changelog = "https://github.com/brightio/penelope/releases/tag/v${version}"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "penelope.py"; + platforms = lib.platforms.all; + }; +}