refactor(nix): Overlays
This commit is contained in:
parent
62f0882d46
commit
59b6868a69
5 changed files with 53 additions and 20 deletions
20
.config/nix/overlays/python.nix
Normal file
20
.config/nix/overlays/python.nix
Normal 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;
|
||||
})];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue