From c81213600a01134ea0b18f01bdb6d55f837a2181 Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Mon, 10 Jan 2022 17:51:41 -0500 Subject: [PATCH] python310Packages.xarray: fix build --- pkgs/development/python-modules/xarray/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/xarray/default.nix b/pkgs/development/python-modules/xarray/default.nix index 37fb5edf7011..5f780a61ffc5 100644 --- a/pkgs/development/python-modules/xarray/default.nix +++ b/pkgs/development/python-modules/xarray/default.nix @@ -5,8 +5,8 @@ , pandas , pytestCheckHook , pythonOlder -, setuptools , setuptoolsBuildHook +, setuptools-scm }: buildPythonPackage rec { @@ -21,14 +21,16 @@ buildPythonPackage rec { sha256 = "sha256-wuvoDKgbEKAkH2h23MNKyWluXFzc30dY2nz0vXMsQfc="; }; + SETUPTOOLS_SCM_PRETEND_VERSION="${version}"; + nativeBuildInputs = [ setuptoolsBuildHook + setuptools-scm ]; propagatedBuildInputs = [ numpy pandas - setuptools ]; checkInputs = [