2023-03-15 00:10:13 +03:00
|
|
|
{ lib
|
|
|
|
, poetry2nix
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python39
|
|
|
|
, python39Packages
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
poetryOverrides = poetry2nix.defaultPoetryOverrides.extend (full: prev: {
|
|
|
|
colorama = prev.colorama.overridePythonAttrs (old: {
|
|
|
|
buildInputs = old.buildInputs ++ [ prev.hatchling ];
|
|
|
|
});
|
|
|
|
iniconfig = prev.iniconfig.overridePythonAttrs (old: {
|
|
|
|
buildInputs = old.buildInputs ++ [ prev.hatchling prev.hatch-vcs ];
|
|
|
|
});
|
|
|
|
filelock = prev.filelock.overridePythonAttrs (old: {
|
|
|
|
buildInputs = old.buildInputs ++ [ prev.hatchling prev.hatch-vcs ];
|
|
|
|
});
|
|
|
|
packaging = prev.packaging.overridePythonAttrs (old: {
|
|
|
|
buildInputs = old.buildInputs ++ [ prev.flit-core ];
|
|
|
|
});
|
|
|
|
pathspec = prev.pathspec.overridePythonAttrs (old: {
|
|
|
|
buildInputs = old.buildInputs ++ [ prev.flit-core ];
|
|
|
|
});
|
|
|
|
nox = prev.nox.overridePythonAttrs (old: {
|
|
|
|
buildInputs = old.buildInputs ++ [ prev.setuptools ];
|
|
|
|
});
|
|
|
|
exceptiongroup = prev.exceptiongroup.overridePythonAttrs (old: {
|
|
|
|
buildInputs = old.buildInputs ++ [ prev.flit-scm ];
|
|
|
|
});
|
|
|
|
mypy = prev.mypy.overridePythonAttrs (old: {
|
2023-03-15 23:49:19 +03:00
|
|
|
buildInputs = old.buildInputs ++ [ prev.types-psutil ];
|
2023-03-15 00:10:13 +03:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tweag";
|
|
|
|
repo = "FawltyDeps";
|
2023-03-16 01:12:20 +03:00
|
|
|
rev = "f8b156756b1de47c578935c4d6f6a7a8f2975c63";
|
|
|
|
sha256 = "sha256-3oQX0oX1+jZAC+vTRd7dUGNfioc6ADFmF+GSbvVyYsQ=";
|
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-15 00:10:13 +03:00
|
|
|
python = python39;
|
|
|
|
projectDir = "${src}";
|
|
|
|
overrides = poetryOverrides;
|
|
|
|
}
|