poetry2nix/tests/path-deps-develop/default.nix
adisbladis 96d87dcbd5 Migrate from Niv to Flakes
It's annoying to have two incompatible version managers.
2023-07-14 19:21:55 +12:00

23 lines
520 B
Nix

{ lib, poetry2nix, python3, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
python = python3;
projectDir = ./.;
editablePackageSources = {
dep1 = null;
};
overrides = poetry2nix.overrides.withDefaults (self: super: {
dep1 = super.dep1.overridePythonAttrs (old: {
buildInputs = (old.buildInputs or [ ]) ++ [ self.setuptools ];
});
});
};
in
runCommand "path-deps-develop-import" { } ''
echo using ${env}
${env}/bin/python -c 'import dep1'
echo $? > $out
''