From 1c239a1c4f4ed444444576827e857b0582cb970d Mon Sep 17 00:00:00 2001 From: Sandro Date: Mon, 7 Feb 2022 11:37:26 +0100 Subject: [PATCH] python39Packages.titlecase: fix version number (#158433) Co-authored-by: Jonathan Ringer --- pkgs/development/python-modules/titlecase/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/titlecase/default.nix b/pkgs/development/python-modules/titlecase/default.nix index 0b9e6547dee6..33fe952ad2a3 100644 --- a/pkgs/development/python-modules/titlecase/default.nix +++ b/pkgs/development/python-modules/titlecase/default.nix @@ -4,6 +4,7 @@ , pytestCheckHook , pythonOlder , regex +, setuptools-scm }: buildPythonPackage rec { @@ -20,6 +21,12 @@ buildPythonPackage rec { sha256 = "169ywzn5wfzwyknqavspkdpwbx31nycxsxkl7iywwk71gs1lskkw"; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools-scm + ]; + propagatedBuildInputs = [ regex ];