python-packages: add workaround to reenable requirements checking

This commit is contained in:
Erik Arvstedt 2023-12-12 11:57:43 +01:00
parent dc1033f1c8
commit 1c07c5fa5c
No known key found for this signature in database
GPG key ID: 33312B944DD97846
14 changed files with 38 additions and 26 deletions

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 {