Skip to content

Commit ac76a34

Browse files
authored
python312Packages.bugzilla: misc refactoring (#349141)
2 parents 030d387 + 2dc3caa commit ac76a34

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

pkgs/development/python-modules/bugwarrior/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
twiggy,
88
requests,
99
offtrac,
10-
bugzilla,
10+
python-bugzilla,
1111
taskw,
1212
python-dateutil,
1313
pytz,
@@ -39,7 +39,7 @@ buildPythonPackage rec {
3939
twiggy
4040
requests
4141
offtrac
42-
bugzilla
42+
python-bugzilla
4343
taskw
4444
python-dateutil
4545
pytz

pkgs/development/python-modules/bugzilla/default.nix renamed to pkgs/development/python-modules/python-bugzilla/default.nix

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,27 @@
22
lib,
33
buildPythonPackage,
44
fetchPypi,
5+
setuptools,
56
requests,
67
responses,
78
pytestCheckHook,
89
glibcLocalesUtf8,
910
}:
1011

1112
buildPythonPackage rec {
12-
pname = "bugzilla";
13+
pname = "python-bugzilla";
1314
version = "3.3.0";
14-
format = "setuptools";
15+
pyproject = true;
1516

1617
src = fetchPypi {
17-
pname = "python_${pname}";
18+
pname = "python_bugzilla";
1819
inherit version;
19-
sha256 = "sha256-4YIgFx4DPrO6YAxNE5NZ0BqhrOwdrrxDCJEORQdj3kc=";
20+
hash = "sha256-4YIgFx4DPrO6YAxNE5NZ0BqhrOwdrrxDCJEORQdj3kc=";
2021
};
2122

22-
propagatedBuildInputs = [ requests ];
23+
build-system = [ setuptools ];
24+
25+
dependencies = [ requests ];
2326

2427
nativeCheckInputs = [
2528
pytestCheckHook

pkgs/top-level/python-aliases.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ mapAliases ({
8585
boto = throw "boto was removed as it is deprecated upstream, had not been updated since 2018, and failed to build; please use boto3 and botocore"; # Added 2024-09-22
8686
bsblan = python-bsblan; # added 2022-11-04
8787
btchip = btchip-python; # added 2023-03-03
88+
bugzilla = python-bugzilla; # added 2024-10-17
8889
buildbot = throw "use pkgs.buildbot instead"; # added 2022-04-07
8990
buildbot-ui = throw "use pkgs.buildbot-ui instead"; # added 2022-04-07
9091
buildbot-full = throw "use pkgs.buildbot-full instead"; # added 2022-04-07

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,8 +1902,6 @@ self: super: with self; {
19021902

19031903
bugz = callPackage ../development/python-modules/bugz { };
19041904

1905-
bugzilla = callPackage ../development/python-modules/bugzilla { };
1906-
19071905
buienradar = callPackage ../development/python-modules/buienradar { };
19081906

19091907
build = callPackage ../development/python-modules/build { };
@@ -9135,6 +9133,8 @@ self: super: with self; {
91359133

91369134
plugp100 = callPackage ../development/python-modules/plugp100 {};
91379135

9136+
python-bugzilla = callPackage ../development/python-modules/python-bugzilla { };
9137+
91389138
python-hcl2 = callPackage ../development/python-modules/python-hcl2 { };
91399139

91409140
python-ndn = callPackage ../development/python-modules/python-ndn { };

0 commit comments

Comments
 (0)