Add a package WIP

This commit is contained in:
Andreas Zweili 2022-11-22 22:28:50 +01:00
parent aec26414ae
commit 0a0fc61ec5
1 changed files with 19 additions and 0 deletions

View File

@ -28,6 +28,23 @@
});
};
})
poetry2nix.overlay
(final: prev: {
inventory = prev.poetry2nix.mkPoetryApplication
{
projectDir = ./.;
checkPhase = "pytest --ds=network_inventory.settings.ram_test -nauto --nomigrations";
overrides = prev.poetry2nix.defaultPoetryOverrides.extend
(self: super: {
python-monkey-business = super.python-monkey-business.overridePythonAttrs
(
old: {
buildInputs = (old.buildInputs or [ ]) ++ [ super.setuptools ];
}
);
});
};
})
];
} // (flake-utils.lib.eachDefaultSystem (system:
let
@ -49,5 +66,7 @@
'';
};
packages.venv = pkgs.inventoryEnv;
packages.inventory = pkgs.inventory;
packages.default = pkgs.inventory;
}));
}