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