diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2023-12-29 11:27:59 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2023-12-29 11:27:59 +0000 |
commit | 089b731d87d41e03f57cb46a712381c98e37bfa6 (patch) | |
tree | c913c6c74a7a5fc51cc86fae4eefdbbc7db28d2a /pkgs/development/interpreters/python | |
parent | d20560a3ad7b7c910f0335b2be1fc59a33f36a75 (diff) | |
download | nixlib-089b731d87d41e03f57cb46a712381c98e37bfa6.tar nixlib-089b731d87d41e03f57cb46a712381c98e37bfa6.tar.gz nixlib-089b731d87d41e03f57cb46a712381c98e37bfa6.tar.bz2 nixlib-089b731d87d41e03f57cb46a712381c98e37bfa6.tar.lz nixlib-089b731d87d41e03f57cb46a712381c98e37bfa6.tar.xz nixlib-089b731d87d41e03f57cb46a712381c98e37bfa6.tar.zst nixlib-089b731d87d41e03f57cb46a712381c98e37bfa6.zip |
python/hooks: fix `test` attribute eval
Without the change `tests` attribute fails the eval as: $ nix build --no-link -f. pypy27Packages.pypaBuildHook.tests error: 69| # versions of this hook's dependencies. 70| passthru.tests = import ./pypa-build-hook-tests.nix { | ^ Fixed file name and added missing runCommand import.
Diffstat (limited to 'pkgs/development/interpreters/python')
-rw-r--r-- | pkgs/development/interpreters/python/hooks/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/python/hooks/default.nix b/pkgs/development/interpreters/python/hooks/default.nix index 35116b38f810..d06f3db334da 100644 --- a/pkgs/development/interpreters/python/hooks/default.nix +++ b/pkgs/development/interpreters/python/hooks/default.nix @@ -2,6 +2,7 @@ self: dontUse: with self; let inherit (python) pythonOnBuildForHost; + inherit (pkgs) runCommand; pythonInterpreter = pythonOnBuildForHost.interpreter; pythonSitePackages = python.sitePackages; pythonCheckInterpreter = python.interpreter; @@ -67,7 +68,7 @@ in { # Such conflicts don't happen within the standard nixpkgs python package # set, but in downstream projects that build packages depending on other # versions of this hook's dependencies. - passthru.tests = import ./pypa-build-hook-tests.nix { + passthru.tests = import ./pypa-build-hook-test.nix { inherit pythonOnBuildForHost runCommand; }; } ./pypa-build-hook.sh) { |