From 078f88f29d1feb58831602a183a76aadf495daf7 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 31 Mar 2023 23:49:18 -0300 Subject: [PATCH] base16-shell-preview: refactor Also, take maintenace to myself. --- pkgs/misc/base16-shell-preview/default.nix | 25 +++++++++++++--------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pkgs/misc/base16-shell-preview/default.nix b/pkgs/misc/base16-shell-preview/default.nix index c5b806d65e5a..feb9df74dbb8 100644 --- a/pkgs/misc/base16-shell-preview/default.nix +++ b/pkgs/misc/base16-shell-preview/default.nix @@ -1,23 +1,28 @@ -{ lib, python3Packages }: +{ lib +, python3Packages +}: -python3Packages.buildPythonApplication rec { +let pname = "base16-shell-preview"; version = "1.0.0"; +in +python3Packages.buildPythonApplication { + inherit pname version; src = python3Packages.fetchPypi { inherit version; - pname = "base16_shell_preview"; - sha256 = "098f3z81g3acgcrisipz0nh17n9kx7ld6h8dg26qz3nx31pngsxd"; + pname = "${lib.replaceStrings ["-"] ["_"] pname}"; + hash = "sha256-retnbxjdjo+NeA1B0+jpM9kToAX/Rh0ze0yNF9AfDiU="; }; - # No tests - # If enabled, will attempt to run '__init__.py, and will fail with "/homeless-shelter" as HOME + # If enabled, it will attempt to run '__init__.py, failing by trying to write + # at "/homeless-shelter" as HOME doCheck = false; - meta = with lib; { - description = "Browse and preview Base16 Shell themes in your terminal"; + meta = { homepage = "https://github.com/nvllsvm/base16-shell-preview"; - license = licenses.mit; - maintainers = [ maintainers.rencire ]; + description = "Browse and preview Base16 Shell themes in your terminal"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ AndersonTorres ]; }; }