dotfiles/nix/overlays/python.nix
Ahmad Ansori Palembani 93a26accd1
refactor: Move nix outside of .config dir
Technically not a config but a compose file, so I think it's better to
have outside of `.config` dir
2024-11-05 13:53:13 +07:00

21 lines
672 B
Nix

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 = [
"test_resolver" # Relying too much on internet connection, Indonesian internet couldn't cope with it
] ++ old.disabledTests;
});
pillow = disablePyChecks pyprev.pillow; # Inconsistent test result
cherrypy = disablePyChecks pyprev.cherrypy; # Inconsistent test result
})
];
}