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 , rustPlatform
}: }:
callPackage ./generic.nix { python3.pkgs.callPackage ./generic.nix {
buildAndTestSubdir = "examples/word-count"; buildAndTestSubdir = "examples/word-count";
nativeBuildInputs = with rustPlatform; [ nativeBuildInputs = with rustPlatform; [

View File

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