Merge pull request #117230 from dotlambda/promise-fix

[staging-next] python3Packages.promise: fix tests
This commit is contained in:
Sandro 2021-03-23 02:20:36 +01:00 committed by GitHub
commit bb83a4a08c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,41 +1,35 @@
{ buildPythonPackage { buildPythonPackage
, fetchPypi , fetchFromGitHub
, lib , lib
, six
, coveralls , pytestCheckHook
, gevent
, mock , mock
, pytest-asyncio , pytest-asyncio
, pytest-benchmark
, pytestcov
, six
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "promise"; pname = "promise";
version = "2.3"; version = "2.3.0";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "syrusakbary";
sha256 = "1l4kknj97dj5pxfpsz3ln78x9a843561c740b1m4pfi3qlvq7lfz"; repo = "promise";
rev = "v${version}";
sha256 = "17mq1bm78xfl0x1g50ng502m5ldq6421rzz35hlqafsj0cq8dkp6";
}; };
patchPhase = ''
substituteInPlace setup.py \
--replace '"futures",' ""
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
gevent
six six
]; ];
checkInputs = [ checkInputs = [
coveralls pytestCheckHook
mock mock
pytest-asyncio pytest-asyncio
pytest-benchmark ];
pytestcov
disabledTestPaths = [
"tests/test_benchmark.py"
]; ];
meta = with lib; { meta = with lib; {