dotfiles/.config/nix/overlays/python.nix
Ahmad Ansori Palembani 26c9cfbaed
refactor(nix): Mix stable and unstable packages
Also replace inkscape with brew cask inkscape on macOS
2024-11-02 10:06:35 +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
})
];
}