about summary refs log tree commit diff
path: root/pkgs/development/tools/rust/maturin
diff options
context:
space:
mode:
authorDaniël de Kok <me@danieldk.eu>2021-03-20 08:50:28 +0100
committerDaniël de Kok <me@danieldk.eu>2021-03-20 08:50:28 +0100
commitcf66c08b8436c02b11ab4a4fb665fc4731abaee0 (patch)
treed061f7a1d95459f68558abc11fb48c40f9538c99 /pkgs/development/tools/rust/maturin
parent313177129b521e49d2acc7ad884cf798e3a01b4c (diff)
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.
Diffstat (limited to 'pkgs/development/tools/rust/maturin')
-rw-r--r--pkgs/development/tools/rust/maturin/pyo3-test/default.nix4
-rw-r--r--pkgs/development/tools/rust/maturin/pyo3-test/generic.nix4
2 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/tools/rust/maturin/pyo3-test/default.nix b/pkgs/development/tools/rust/maturin/pyo3-test/default.nix
index b118309b36d7b..7f79c8565d236 100644
--- a/pkgs/development/tools/rust/maturin/pyo3-test/default.nix
+++ b/pkgs/development/tools/rust/maturin/pyo3-test/default.nix
@@ -1,8 +1,8 @@
-{ callPackage
+{ python3
 , rustPlatform
 }:
 
-callPackage ./generic.nix {
+python3.pkgs.callPackage ./generic.nix {
   buildAndTestSubdir = "examples/word-count";
 
   nativeBuildInputs = with rustPlatform; [
diff --git a/pkgs/development/tools/rust/maturin/pyo3-test/generic.nix b/pkgs/development/tools/rust/maturin/pyo3-test/generic.nix
index 84ca2ddf77f69..41175ad8538a6 100644
--- a/pkgs/development/tools/rust/maturin/pyo3-test/generic.nix
+++ b/pkgs/development/tools/rust/maturin/pyo3-test/generic.nix
@@ -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";