python-packages: add workaround to reenable requirements checking

This commit is contained in:
Erik Arvstedt
2023-12-14 14:53:10 +01:00
parent dc1033f1c8
commit 1c07c5fa5c
14 changed files with 38 additions and 26 deletions
+11
View File
@@ -46,6 +46,17 @@ rec {
# autobahn 20.12.3, required by joinmarketclient
autobahn = callPackage ./specific-versions/autobahn.nix {};
# A version of `buildPythonPackage` which checks that Python package
# requirements are met.
# This was the case for NixOS <= 23.05.
# TODO-EXTERNAL: Remove when this is resolved:
# https://github.com/NixOS/nixpkgs/issues/253131
buildPythonPackageWithDepsCheck = attrs:
self.buildPythonPackage (attrs // {
dontUsePypaInstall = true;
nativeBuildInputs = (attrs.nativeBuildInputs or []) ++ [ self.pipInstallHook ];
});
};
nbPython3Packages = (python3.override {