setconf: use the new Python packaging guidelines

This commit is contained in:
Anderson Torres 2024-10-14 20:56:18 -03:00 committed by Matthieu Coudron
parent a30e284fcd
commit 96043dc729
2 changed files with 8 additions and 5 deletions

View File

@ -1,12 +1,11 @@
{ lib
, buildPythonApplication
, python3Packages
, fetchFromGitHub
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "setconf";
version = "0.7.7";
format = "setuptools";
src = fetchFromGitHub {
owner = "xyproto";
@ -15,11 +14,15 @@ buildPythonApplication rec {
hash = "sha256-HYZdDtDlGrT3zssDdMW3559hhC+cPy8qkmM8d9zEa1A=";
};
build-system = with python3Packages; [ setuptools ];
pyproject = true;
meta = {
homepage = "https://github.com/xyproto/setconf";
description = "Small utility for changing settings in configuration textfiles";
changelog = "https://github.com/xyproto/setconf/releases/tag/${version}";
maintainers = [ lib.maintainers.AndersonTorres ];
mainProgram = "setconf";
maintainers = with lib.maintainers; [ AndersonTorres ];
};
}

View File

@ -32317,7 +32317,7 @@ with pkgs;
secretscanner = callPackage ../tools/security/secretscanner { };
setconf = python3.pkgs.callPackage ../tools/misc/setconf { };
setconf = callPackage ../tools/misc/setconf { };
semiphemeral = callPackage ../tools/misc/semiphemeral { };