From 0c51d277b888f0922fccdabfbcfe59e6d22c356a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 21 Jun 2021 13:43:55 +0200 Subject: [PATCH] python3Packages.anyio: 3.1.0 -> 3.2.0 Fix version string by including setuptools-scm and setting a pretend version, so that we don't require other version hints. --- pkgs/development/python-modules/anyio/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/anyio/default.nix b/pkgs/development/python-modules/anyio/default.nix index 86fa3bafa2a8..9ac37cdc5994 100644 --- a/pkgs/development/python-modules/anyio/default.nix +++ b/pkgs/development/python-modules/anyio/default.nix @@ -3,6 +3,7 @@ , buildPythonPackage , fetchFromGitHub , pythonOlder +, setuptools-scm , idna , sniffio , typing-extensions @@ -18,7 +19,7 @@ buildPythonPackage rec { pname = "anyio"; - version = "3.1.0"; + version = "3.2.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -29,6 +30,14 @@ buildPythonPackage rec { sha256 = "sha256-zQiSAQN7cp1s+8hDTvYaMkHUXV1ccNwIsl2IOztH7J8="; }; + preBuild = '' + export SETUPTOOLS_SCM_PRETEND_VERSION=${version} + ''; + + nativeBuildInputs = [ + setuptools-scm + ]; + propagatedBuildInputs = [ idna sniffio