2023-10-26 12:18:24 +13:00
|
|
|
{ poetry2nix, python3, runCommand }:
|
2022-04-07 12:05:58 +01:00
|
|
|
|
2022-09-02 01:36:55 +12:00
|
|
|
let
|
|
|
|
env = poetry2nix.mkPoetryEnv {
|
|
|
|
python = python3;
|
|
|
|
projectDir = ./.;
|
|
|
|
editablePackageSources = {
|
|
|
|
dep1 = null;
|
|
|
|
};
|
2022-10-07 09:37:55 +03:00
|
|
|
|
|
|
|
overrides = poetry2nix.overrides.withDefaults (self: super: {
|
|
|
|
dep1 = super.dep1.overridePythonAttrs (old: {
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.setuptools ];
|
|
|
|
});
|
|
|
|
});
|
2022-04-07 12:05:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
2023-07-14 17:36:10 +12:00
|
|
|
runCommand "path-deps-develop-import" { } ''
|
|
|
|
echo using ${env}
|
|
|
|
${env}/bin/python -c 'import dep1'
|
|
|
|
echo $? > $out
|
|
|
|
''
|