From 9ea4232765c73c47bcc6966fabf3ce7bd1b64a70 Mon Sep 17 00:00:00 2001 From: Aroun Olorin Date: Mon, 3 Apr 2023 06:02:18 +0530 Subject: [PATCH] pacup: init at 1.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sandro Co-authored-by: Robert Schütz --- .../package-management/pacup/default.nix | 37 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/tools/package-management/pacup/default.nix diff --git a/pkgs/tools/package-management/pacup/default.nix b/pkgs/tools/package-management/pacup/default.nix new file mode 100644 index 000000000000..288f3affe72c --- /dev/null +++ b/pkgs/tools/package-management/pacup/default.nix @@ -0,0 +1,37 @@ +{ lib +, fetchFromGitHub +, python3 +, buildPythonApplication +, poetry-core +, httpx +, rich +, typer +, packaging +}: +buildPythonApplication rec { + name = "pacup"; + version = "1.1.0"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "pacstall"; + repo = name; + rev = version; + hash = "sha256-Hl/Gq/cZz4RGYKTuyDlrhATAUYEzKEuYIm0JdToN/ZY="; + }; + + nativeBuildInputs = with python3; [ poetry-core ]; + + propagatedBuildInputs = with python3; [ httpx rich typer packaging ]; + + meta = with lib; { + description = "Help maintainers update pacscripts"; + longDescription = '' + Pacup (Pacscript Updater) is a maintainer helper tool to help maintainers update their pacscripts. + It semi-automates the tedious task of updating pacscripts, and aims to make it a fun process for the maintainer! + ''; + homepage = "https://github.com/pacstall/pacup"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ zahrun ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 420550e60c8b..d03c6487b161 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -899,6 +899,8 @@ with pkgs; pacproxy = callPackage ../tools/networking/pacproxy { }; + pacup = python3Packages.callPackage ../tools/package-management/pacup { }; + perseus-cli = callPackage ../development/tools/perseus-cli { inherit (darwin.apple_sdk.frameworks) CoreServices; };