Fix Woodpecker CI format: add privileged flag, root-level steps

This commit is contained in:
Celes Renata
2026-08-01 16:34:42 -07:00
commit aad97806f2
2 changed files with 80 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
{
description = "DCOS Distributed Cognitive Operating System";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
python = pkgs.python311;
pythonPackages = pkgs.python311Packages;
in {
packages.default = pythonPackages.buildPythonPackage {
pname = "dcos";
version = "1.0.0";
src = ./.;
nativeBuildInputs = with pkgs; [
python
pyyaml
];
propagatedBuildInputs = with pythonPackages; [
pyyaml
];
doCheck = false;
format = "pyproject";
pyproject = true;
pyprojectFiles = [ "pyproject.toml" ];
makeWheel = true;
};
devShells.default = pkgs.mkShell {
packages = with pkgs; [
python
pythonPackages.pip
pythonPackages.pytest
pythonPackages.pytest-asyncio
pythonPackages.pyyaml
];
shellHook = ''
export PYTHONPATH="${toString (builtins.toPath ./src)}:$PYTHONPATH"
echo "DCOS dev shell Python 3.11, pytest, pyyaml"
'';
};
});
}