2023-03-15 00:10:13 +03:00
|
|
|
{ lib
|
|
|
|
, poetry2nix
|
|
|
|
, fetchFromGitHub
|
2023-03-16 12:48:13 +03:00
|
|
|
, python310
|
2023-03-15 00:10:13 +03:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
poetryOverrides = poetry2nix.defaultPoetryOverrides.extend (full: prev: {
|
|
|
|
nox = prev.nox.overridePythonAttrs (old: {
|
|
|
|
buildInputs = old.buildInputs ++ [ prev.setuptools ];
|
|
|
|
});
|
2023-03-16 23:11:15 +03:00
|
|
|
pip-requirements-parser = prev.pip-requirements-parser.overridePythonAttrs (old: {
|
|
|
|
dontConfigure = true;
|
2023-03-15 00:10:13 +03:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tweag";
|
|
|
|
repo = "FawltyDeps";
|
2023-03-16 23:11:15 +03:00
|
|
|
rev = "2f9338d3ceb0c1954500f2cbede16ce223bfb160";
|
|
|
|
sha256 = "sha256-h5jWeJ5ZfrTuGZr14nUFaNFMCRlpBzDxfFKRYTqxFDI=";
|
2023-03-15 00:10:13 +03:00
|
|
|
};
|
|
|
|
in
|
|
|
|
poetry2nix.mkPoetryApplication {
|
2023-03-16 01:12:20 +03:00
|
|
|
version = "2023-03-16";
|
2023-03-16 12:48:13 +03:00
|
|
|
python = python310;
|
2023-03-15 00:10:13 +03:00
|
|
|
projectDir = "${src}";
|
|
|
|
overrides = poetryOverrides;
|
|
|
|
}
|