27 lines
828 B
Nix
27 lines
828 B
Nix
system: nixpkgs: # e.g. x86_64-linux
|
|
|
|
let
|
|
disablePyChecks = pkg: pkg.overridePythonAttrs (old: {
|
|
doCheck = false;
|
|
doInstallCheck = false;
|
|
dontCheck = true;
|
|
});
|
|
in {
|
|
system = system;
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [(final: prev: {
|
|
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;
|
|
})];
|
|
})];
|
|
config.allowUnfree = true;
|
|
};
|
|
}
|