Commit 089b731d authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

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.
parent d20560a3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) {