refactor(nix): Overlays

This commit is contained in:
Ahmad Ansori Palembani 2024-10-20 09:20:12 +07:00
parent 62f0882d46
commit 59b6868a69
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
5 changed files with 53 additions and 20 deletions

View file

@ -0,0 +1,20 @@
final: prev:
let
disablePyChecks = pkg: pkg.overridePythonAttrs (old: {
doCheck = false;
doInstallCheck = false;
dontCheck = true;
});
in {
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [(pyfinal: pyprev: {
dnspython = (disablePyChecks pyprev.dnspython).overridePythonAttrs (old: {
disabledTests = [
# This test is unreliable when my internet is throttled by Indonesian ISP, timeout everywhere... lovely...
"test_resolver"
] ++ old.disabledTests;
});
pillow = disablePyChecks pyprev.pillow;
cherrypy = disablePyChecks pyprev.cherrypy;
})];
}