Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion checks/.typos.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[default]
extend-ignore-words-re = [
# ignore some correct command line tools
"exportfs"
"exportfs",
"certifi",
]
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 17 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "OpenStack Packages and Modules for NixOS";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.05";
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-26.05";
pre-commit-hooks-nix = {
url = "github:cachix/pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
Expand All @@ -20,7 +20,22 @@
flake-utils.lib.eachSystem [ "x86_64-linux" ] (
system:
let
pkgs = import nixpkgs { inherit system; };
pkgs = import nixpkgs {
inherit system;
config.problems.handlers.pysaml2.broken = "warn";
overlays = [
(_final: prev: {
python3 = prev.python3.override {
packageOverrides = _: pyPrev: {
pysaml2 = pyPrev.pysaml2.overridePythonAttrs (_old: {
doCheck = false;
});
};
};
python3Packages = _final.python3.pkgs;
})
];
};
pre-commit-hooks-run = pre-commit-hooks-nix.lib.${system}.run;
in
rec {
Expand Down
6 changes: 3 additions & 3 deletions lib/rootwrap-conf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
}:
writeText "rootwrap.conf" ''
# Configuration for neutron-rootwrap
# This file should be owned by (and only-writeable by) the root user
# This file should be owned by (and only-writable by) the root user

[DEFAULT]
# List of directories to load filter definitions from (separated by ',').
# These directories MUST all be only writeable by root !
# These directories MUST all be only writable by root !
filters_path=${package}/${filterPath}

# List of directories to search executables in, in case filters do not
# explicitly specify a full path (separated by ',')
# If not specified, defaults to system PATH environment variable.
# These directories MUST all be only writeable by root !
# These directories MUST all be only writable by root !
exec_dirs=/run/current-system/sw/bin,/${coreutils}/bin,${utils_env}/bin

# Enable logging to syslog
Expand Down
2 changes: 1 addition & 1 deletion modules/controller/horizon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ in
};
package = mkOption {
default = horizon;
description = ''The Horizon Package to use'';
description = "The Horizon Package to use";
type = types.package;
};
};
Expand Down
2 changes: 1 addition & 1 deletion modules/controller/neutron.nix
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ in
wantedBy = [ "multi-user.target" ];
path = [ neutron ];
serviceConfig = {
ExecStart = ''${neutron}/bin/neutron-metadata-agent --config-file=${cfg.config}'';
ExecStart = "${neutron}/bin/neutron-metadata-agent --config-file=${cfg.config}";
};
};

Expand Down
2 changes: 1 addition & 1 deletion modules/testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ drwxr-xr-x 6 cinder cinder 4.0K Feb 24 08:09 ..

```nix

pkgs.nixosTest {
pkgs.testers.nixosTest {

nodes.controllerVM =
{ ... }:
Expand Down
6 changes: 6 additions & 0 deletions packages/automaton.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ python3Packages.buildPythonPackage rec {
pname = "automaton";
version = "3.2.0";

pyproject = true;
build-system = [
python3Packages.pbr
python3Packages.setuptools
];

nativeBuildInputs = [
pbr
];
Expand Down
10 changes: 8 additions & 2 deletions packages/castellan.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let
fixtures
pbr
python-dateutil
python-subunit
subunit
requests
requests-mock
stestr
Expand All @@ -31,6 +31,12 @@ python3Packages.buildPythonPackage rec {
pname = "castellan";
version = "5.1.1";

pyproject = true;
build-system = [
python3Packages.pbr
python3Packages.setuptools
];

nativeBuildInputs = [
pbr
pifpaf
Expand Down Expand Up @@ -59,7 +65,7 @@ python3Packages.buildPythonPackage rec {
fixtures
oslotest
python-barbicanclient
python-subunit
subunit
requests-mock
testscenarios
testtools
Expand Down
10 changes: 8 additions & 2 deletions packages/cinder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ let
pycodestyle
pymysql
python-memcached
rtslib
rtslib-fb
sqlalchemy-utils
stestr
tabulate
Expand All @@ -68,6 +68,12 @@ python3Packages.buildPythonPackage rec {
pname = "cinder";
version = "25.0.0";

pyproject = true;
build-system = [
python3Packages.pbr
python3Packages.setuptools
];

nativeBuildInputs = [
pbr
];
Expand Down Expand Up @@ -106,7 +112,7 @@ python3Packages.buildPythonPackage rec {
python-novaclient
python-swiftclient
qemu-utils
rtslib
rtslib-fb
tabulate
taskflow
tenacity
Expand Down
20 changes: 18 additions & 2 deletions packages/cursive.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let
hacking
mock
pbr
python-subunit
subunit
stestr
testrepository
testresources
Expand All @@ -26,6 +26,18 @@ python3Packages.buildPythonPackage rec {
pname = "cursive";
version = "0.2.3";

pyproject = true;
build-system = [
python3Packages.pbr
python3Packages.setuptools
];

postPatch = ''
sed -i '/ec\.SECT571K1()/d; /ec\.SECT409K1()/d; /ec\.SECT571R1()/d; /ec\.SECT409R1()/d' cursive/signature_utils.py
'';

doCheck = false;

nativeBuildInputs = [
pbr
];
Expand All @@ -48,7 +60,7 @@ python3Packages.buildPythonPackage rec {
hacking
mock
oslotest
python-subunit
subunit
testrepository
testresources
testtools
Expand All @@ -58,6 +70,10 @@ python3Packages.buildPythonPackage rec {
stestr run
'';

pythonImportsCheck = [
"cursive.signature_utils"
];

src = fetchPypi {
inherit pname version;
sha256 = "sha256-9DX2zb5qUX8FTBEFw25DbXhoEk8bIn0xD+gJ2RiowQw=";
Expand Down
2 changes: 2 additions & 0 deletions packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ let
oslo-i18n
oslo-serialization
oslo-utils
reno
;
};
python-glanceclient = python3Packages.python-glanceclient.override {
Expand Down Expand Up @@ -731,6 +732,7 @@ let
keystoneauth1
oslo-i18n
oslo-serialization
oslo-utils
;
};
python-swiftclient = callPackage ./python-swiftclient.nix {
Expand Down
2 changes: 2 additions & 0 deletions packages/django-discover-runner.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ python3Packages.buildPythonPackage rec {
pname = "django-discover-runner";
version = "1.0";

pyproject = true;

propagatedBuildInputs = [
django
];
Expand Down
3 changes: 3 additions & 0 deletions packages/django-pyscss.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ python3Packages.buildPythonPackage rec {
pname = "django-pyscss";
version = "2.0.3";

pyproject = true;
build-system = [ python3Packages.setuptools ];

propagatedBuildInputs = [
django
pyscss
Expand Down
9 changes: 7 additions & 2 deletions packages/doc8.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let
docutils
pygments
restructuredtext-lint
setuptools_scm
setuptools-scm
stevedore
tomli
;
Expand All @@ -16,9 +16,14 @@ python3Packages.buildPythonPackage rec {
pname = "doc8";
version = "1.1.2";
pyproject = true;
build-system = [
python3Packages.setuptools
setuptools-scm
];
pythonRelaxDeps = [ "docutils" ];

nativeBuildInputs = [
setuptools_scm
setuptools-scm
];

propagatedBuildInputs = [
Expand Down
4 changes: 4 additions & 0 deletions packages/enmerkar.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ let
pytest
pytest-cov
pytest-django
setuptools
;
in
python3Packages.buildPythonPackage rec {
pname = "enmerkar";
version = "0.7.1";

pyproject = true;
build-system = [ setuptools ];

nativeBuildInputs = [
babel
django
Expand Down
10 changes: 8 additions & 2 deletions packages/etcd3gw.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let
oslotest
pbr
pytest
python-subunit
subunit
requests
testrepository
testscenarios
Expand All @@ -22,6 +22,12 @@ python3Packages.buildPythonPackage rec {
pname = "etcd3gw";
version = "2.4.2";

pyproject = true;
build-system = [
python3Packages.pbr
python3Packages.setuptools
];

nativeBuildInputs = [
pbr
];
Expand All @@ -36,7 +42,7 @@ python3Packages.buildPythonPackage rec {
oslotest
pifpaf
pytest
python-subunit
subunit
testrepository
testscenarios
testtools
Expand Down
10 changes: 8 additions & 2 deletions packages/futurist.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let
eventlet
pbr
prettytable
python-subunit
subunit
stestr
testscenarios
testtools
Expand All @@ -20,6 +20,12 @@ python3Packages.buildPythonPackage rec {
pname = "futurist";
version = "3.0.0";

pyproject = true;
build-system = [
python3Packages.pbr
python3Packages.setuptools
];

nativeBuildInputs = [
pbr
];
Expand All @@ -33,7 +39,7 @@ python3Packages.buildPythonPackage rec {
eventlet
oslotest
prettytable
python-subunit
subunit
testscenarios
testtools
];
Expand Down
7 changes: 7 additions & 0 deletions packages/gabbi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ python3Packages.buildPythonPackage rec {
pname = "gabbi";
version = "3.0.0";

pyproject = true;
build-system = [
python3Packages.pbr
python3Packages.setuptools
];
pythonRelaxDeps = [ "urllib3" ];

nativeBuildInputs = [
pbr
];
Expand Down
4 changes: 4 additions & 0 deletions packages/glance-store.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ python3Packages.buildPythonPackage (rec {
pname = "glance_store";
version = "4.8.1";
pyproject = true;
build-system = [
python3Packages.pbr
python3Packages.setuptools
];

nativeBuildInputs = [
pbr
Expand Down
Loading
Loading