poetry2nix/tests/composable-defaults/default.nix

19 lines
436 B
Nix
Raw Normal View History

2023-10-26 12:18:24 +13:00
{ poetry2nix, python3 }:
let
2023-10-26 12:18:24 +13:00
p2nix = poetry2nix.overrideScope' (_self: super: {
2023-10-26 12:18:24 +13:00
defaultPoetryOverrides = super.defaultPoetryOverrides.extend (_pyself: _pysuper: {
my-custom-pkg = super.my-custom-pkg.overridePythonAttrs (_oldAttrs: { });
});
});
in
p2nix.mkPoetryApplication {
python = python3;
projectDir = ./.;
2023-10-26 12:18:24 +13:00
overrides = p2nix.overrides.withDefaults (_self: super: {
inherit (super) customjox;
});
}