python3Packages.setuptools-rust: do no mix Python versions in tests

The passthru test used python3Packages, mixing different Python
version when testing on a Python version different that the python3
alias.
This commit is contained in:
Daniël de Kok 2021-03-20 08:50:28 +01:00
parent 313177129b
commit cf66c08b84
2 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,8 @@
{ callPackage
{ python3
, rustPlatform
}:
callPackage ./generic.nix {
python3.pkgs.callPackage ./generic.nix {
buildAndTestSubdir = "examples/word-count";
nativeBuildInputs = with rustPlatform; [

View file

@ -3,7 +3,7 @@
{ lib
, fetchFromGitHub
, python3Packages
, python
, rustPlatform
, nativeBuildInputs
@ -13,7 +13,7 @@
, preConfigure ? ""
}:
python3Packages.buildPythonPackage rec {
python.pkgs.buildPythonPackage rec {
pname = "word-count";
version = "0.13.2";