From 2e90e5580c42ce8c34c2271ae16a7cc92df22c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 22 Mar 2021 14:24:10 +0100 Subject: [PATCH] python3Packages.promise: fix tests --- .../python-modules/promise/default.nix | 34 ++++++++----------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/pkgs/development/python-modules/promise/default.nix b/pkgs/development/python-modules/promise/default.nix index 68668812fc8..403f0c09791 100644 --- a/pkgs/development/python-modules/promise/default.nix +++ b/pkgs/development/python-modules/promise/default.nix @@ -1,41 +1,35 @@ { buildPythonPackage -, fetchPypi +, fetchFromGitHub , lib - -, coveralls -, gevent +, six +, pytestCheckHook , mock , pytest-asyncio -, pytest-benchmark -, pytestcov -, six }: buildPythonPackage rec { pname = "promise"; - version = "2.3"; + version = "2.3.0"; - src = fetchPypi { - inherit pname version; - sha256 = "1l4kknj97dj5pxfpsz3ln78x9a843561c740b1m4pfi3qlvq7lfz"; + src = fetchFromGitHub { + owner = "syrusakbary"; + repo = "promise"; + rev = "v${version}"; + sha256 = "17mq1bm78xfl0x1g50ng502m5ldq6421rzz35hlqafsj0cq8dkp6"; }; - patchPhase = '' - substituteInPlace setup.py \ - --replace '"futures",' "" - ''; - propagatedBuildInputs = [ - gevent six ]; checkInputs = [ - coveralls + pytestCheckHook mock pytest-asyncio - pytest-benchmark - pytestcov + ]; + + disabledTestPaths = [ + "tests/test_benchmark.py" ]; meta = with lib; {