Skip to content

Commit 96043dc

Browse files
AndersonTorresteto
authored andcommitted
setconf: use the new Python packaging guidelines
1 parent a30e284 commit 96043dc

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{ lib
2-
, buildPythonApplication
2+
, python3Packages
33
, fetchFromGitHub
44
}:
55

6-
buildPythonApplication rec {
6+
python3Packages.buildPythonApplication rec {
77
pname = "setconf";
88
version = "0.7.7";
9-
format = "setuptools";
109

1110
src = fetchFromGitHub {
1211
owner = "xyproto";
@@ -15,11 +14,15 @@ buildPythonApplication rec {
1514
hash = "sha256-HYZdDtDlGrT3zssDdMW3559hhC+cPy8qkmM8d9zEa1A=";
1615
};
1716

17+
build-system = with python3Packages; [ setuptools ];
18+
19+
pyproject = true;
20+
1821
meta = {
1922
homepage = "https://github.com/xyproto/setconf";
2023
description = "Small utility for changing settings in configuration textfiles";
2124
changelog = "https://github.com/xyproto/setconf/releases/tag/${version}";
22-
maintainers = [ lib.maintainers.AndersonTorres ];
2325
mainProgram = "setconf";
26+
maintainers = with lib.maintainers; [ AndersonTorres ];
2427
};
2528
}

pkgs/top-level/all-packages.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32317,7 +32317,7 @@ with pkgs;
3231732317

3231832318
secretscanner = callPackage ../tools/security/secretscanner { };
3231932319

32320-
setconf = python3.pkgs.callPackage ../tools/misc/setconf { };
32320+
setconf = callPackage ../tools/misc/setconf { };
3232132321

3232232322
semiphemeral = callPackage ../tools/misc/semiphemeral { };
3232332323

0 commit comments

Comments
 (0)