Skip to content

Commit f19affe

Browse files
authored
Merge pull request #14 from cobaltcore-dev/nixpkgs-25.05
Nixpkgs 25.05
2 parents e975818 + b71cc2d commit f19affe

15 files changed

Lines changed: 268 additions & 19 deletions

flake.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description = "OpenStack Packages and Modules for NixOS";
33

44
inputs = {
5-
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-24.11";
5+
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.05";
66
pre-commit-hooks-nix = {
77
url = "github:cachix/pre-commit-hooks.nix";
88
inputs.nixpkgs.follows = "nixpkgs";

packages/default.nix

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ let
156156
osprofiler
157157
python-keystoneclient
158158
python3Packages
159+
sqlalchemy
159160
;
160161
};
161162
keystoneauth1 = callPackage ./keystoneauth1.nix {
@@ -190,7 +191,7 @@ let
190191
python3Packages
191192
;
192193
};
193-
openstacksdk = python3Packages.openstacksdk.override {
194+
openstacksdk = callPackage ./openstacksdk.nix {
194195
inherit keystoneauth1;
195196
};
196197
neutron-lib = callPackage ./neutron-lib.nix {
@@ -213,6 +214,7 @@ let
213214
oslotest
214215
osprofiler
215216
python3Packages
217+
sqlalchemy
216218
;
217219
};
218220
neutron = callPackage ./neutron.nix {
@@ -252,6 +254,7 @@ let
252254
python-neutronclient
253255
python-novaclient
254256
python3Packages
257+
sqlalchemy
255258
tooz
256259
;
257260
};
@@ -295,6 +298,7 @@ let
295298
python-glanceclient
296299
python-neutronclient
297300
python3Packages
301+
sqlalchemy
298302
tooz
299303
;
300304
};
@@ -315,6 +319,7 @@ let
315319
oslo-utils
316320
oslotest
317321
python3Packages
322+
sqlalchemy
318323
;
319324
};
320325
os-brick = callPackage ./os-brick.nix {
@@ -392,7 +397,7 @@ let
392397
python3Packages
393398
;
394399
};
395-
osc-lib = python3Packages.osc-lib.override {
400+
osc-lib = callPackage ./osc-lib.nix {
396401
inherit
397402
openstacksdk
398403
oslo-i18n
@@ -440,6 +445,7 @@ let
440445
oslotest
441446
pre-commit
442447
python3Packages
448+
sqlalchemy
443449
;
444450
};
445451
oslo-i18n = callPackage ./oslo-i18n.nix { inherit python3Packages; };
@@ -644,7 +650,7 @@ let
644650
reno
645651
;
646652
};
647-
python-cinderclient = python3Packages.python-cinderclient.override {
653+
python-cinderclient = callPackage ./python-cinderclient.nix {
648654
inherit
649655
keystoneauth1
650656
oslo-i18n
@@ -705,6 +711,7 @@ let
705711
sphinxcontrib-svg2pdfconverter = callPackage ./sphinxcontrib-svg2pdfconverter.nix {
706712
inherit python3Packages;
707713
};
714+
sqlalchemy = callPackage ./sqlalchemy.nix { inherit python3Packages; };
708715
suds-community = callPackage ./suds-community.nix { inherit python3Packages; };
709716
taskflow = callPackage ./taskflow.nix {
710717
inherit

packages/jsonpath-rw-ext.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
discover,
32
fetchPypi,
43
python3Packages,
54
}:
@@ -32,7 +31,6 @@ python3Packages.buildPythonPackage rec {
3231

3332
checkInputs = [
3433
coverage
35-
discover
3634
hacking
3735
oslotest
3836
python-subunit

packages/keystone.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
osprofiler,
1414
python-keystoneclient,
1515
python3Packages,
16+
sqlalchemy,
1617
which,
1718
}:
1819
let
@@ -36,7 +37,6 @@ let
3637
pymysql
3738
pysaml2
3839
requests
39-
sqlalchemy
4040
stestr
4141
tempest
4242
testresources

packages/neutron-lib.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
oslotest,
1919
osprofiler,
2020
python3Packages,
21+
sqlalchemy,
2122
}:
2223
let
2324
inherit (python3Packages)
@@ -33,7 +34,6 @@ let
3334
pylint
3435
python-subunit
3536
setproctitle
36-
sqlalchemy
3737
stestr
3838
stevedore
3939
testresources

packages/neutron.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
python-neutronclient,
3838
python-novaclient,
3939
python3Packages,
40+
sqlalchemy,
4041
tooz,
4142
writeScript,
4243
}:
@@ -64,7 +65,6 @@ let
6465
python-subunit
6566
requests
6667
routes
67-
sqlalchemy
6868
stestr
6969
tenacity
7070
testresources

packages/nova.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
python-glanceclient,
4141
python-neutronclient,
4242
python3Packages,
43+
sqlalchemy,
4344
tooz,
4445
writeScript,
4546
}:
@@ -79,7 +80,6 @@ let
7980
retrying
8081
rfc3986
8182
routes
82-
sqlalchemy
8383
stestr
8484
stevedore
8585
testresources
@@ -108,7 +108,7 @@ python3Packages.buildPythonPackage (rec {
108108
];
109109

110110
propagatedBuildInputs = [
111-
alembic
111+
(alembic.override { inherit sqlalchemy; })
112112
castellan
113113
cryptography
114114
cursive

packages/openstack-placement.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
oslo-utils,
1616
oslotest,
1717
python3Packages,
18+
sqlalchemy,
1819
}:
1920
let
2021
inherit (python3Packages)
2122
jsonschema
2223
pbr
2324
pymysql
2425
routes
25-
sqlalchemy
2626
stestr
2727
;
2828
in

packages/openstacksdk.nix

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
keystoneauth1,
3+
python3Packages,
4+
}:
5+
let
6+
inherit (python3Packages)
7+
platformdirs
8+
cryptography
9+
dogpile-cache
10+
jmespath
11+
jsonpatch
12+
munch
13+
netifaces
14+
openstackdocstheme
15+
os-service-types
16+
pbr
17+
pythonOlder
18+
pyyaml
19+
requestsexceptions
20+
setuptools
21+
sphinxHook
22+
;
23+
in
24+
python3Packages.buildPythonPackage rec {
25+
pname = "openstacksdk";
26+
version = "4.0.0";
27+
pyproject = true;
28+
29+
disabled = pythonOlder "3.8";
30+
31+
outputs = [
32+
"out"
33+
"man"
34+
];
35+
36+
src = python3Packages.fetchPypi {
37+
inherit pname version;
38+
hash = "sha256-54YN2WtwUxMJI8EdVx0lgCuWjx4xOIRct8rHxrMzv0s=";
39+
};
40+
41+
postPatch = ''
42+
# Disable rsvgconverter not needed to build manpage
43+
substituteInPlace doc/source/conf.py \
44+
--replace-fail "'sphinxcontrib.rsvgconverter'," "#'sphinxcontrib.rsvgconverter',"
45+
'';
46+
47+
nativeBuildInputs = [
48+
openstackdocstheme
49+
sphinxHook
50+
];
51+
52+
sphinxBuilders = [ "man" ];
53+
54+
build-system = [ setuptools ];
55+
56+
dependencies = [
57+
platformdirs
58+
cryptography
59+
dogpile-cache
60+
jmespath
61+
jsonpatch
62+
keystoneauth1
63+
munch
64+
netifaces
65+
os-service-types
66+
pbr
67+
requestsexceptions
68+
pyyaml
69+
];
70+
71+
# Checks moved to 'passthru.tests' to workaround slowness
72+
doCheck = false;
73+
74+
#passthru.tests = {
75+
# tests = callPackage ./tests.nix { };
76+
#};
77+
78+
pythonImportsCheck = [ "openstack" ];
79+
}

0 commit comments

Comments
 (0)