tools/pkgs/fawltydeps/default.nix

48 lines
1.5 KiB
Nix
Raw Normal View History

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: {
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 12:48:13 +03:00
rev = "0201e74a158c5774db9150e1e70f01e76bad34e7";
sha256 = "sha256-kSAy6IOS+G+e7hG4ZseglhOsnJ7Tg87MaMRCWUoSJdA=";
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;
}