Add a package WIP
This commit is contained in:
parent
aec26414ae
commit
0a0fc61ec5
19
flake.nix
19
flake.nix
|
@ -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;
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue