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-27 10:41:24 +03:00
|
|
|
rev = "2f835e077504770146730cb19bbe611dbbec5be8";
|
|
|
|
sha256 = "sha256-dPoH86BTb8OmbVOKcBPFIRijz1YbuJ4KbHlLu+bXI3U=";
|
2023-03-15 00:10:13 +03:00
|
|
|
};
|
|
|
|
in
|
|
|
|
poetry2nix.mkPoetryApplication {
|
2023-03-27 10:41:24 +03:00
|
|
|
version = "2023-03-27";
|
2023-03-16 12:48:13 +03:00
|
|
|
python = python310;
|
2023-03-15 00:10:13 +03:00
|
|
|
projectDir = "${src}";
|
|
|
|
overrides = poetryOverrides;
|
|
|
|
}
|