From 212ca435263aa552569ae82a78275c7bf45906bb Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Thu, 13 Jan 2022 19:37:20 -0800 Subject: [PATCH] python3Packages.pytest-asyncio: fix tests --- .../python-modules/pytest-asyncio/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pytest-asyncio/default.nix b/pkgs/development/python-modules/pytest-asyncio/default.nix index 8fd36a8e09e6..ca9951dc8715 100644 --- a/pkgs/development/python-modules/pytest-asyncio/default.nix +++ b/pkgs/development/python-modules/pytest-asyncio/default.nix @@ -1,10 +1,12 @@ { lib , buildPythonPackage , fetchFromGitHub +, flaky , hypothesis , pytest , pytestCheckHook , pythonOlder +, setuptools-scm }: buildPythonPackage rec { @@ -21,11 +23,18 @@ buildPythonPackage rec { sha256 = "1c7xddg76pixwlwdl4zxwpy48q2q619i8kzjx2c67a0i8xbx1q5r"; }; - buildInputs = [ + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = [ pytest ]; checkInputs = [ + flaky hypothesis pytestCheckHook ];