mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
python3Packages.promise: fix tests
This commit is contained in:
parent
feda7be375
commit
2e90e5580c
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user