Merge pull request #133276 from fabaff/bump-testfixtures
This commit is contained in:
@@ -113,6 +113,10 @@ buildPythonPackage rec {
|
||||
"test_custom_loop_asyncio"
|
||||
"test_custom_loop_asyncio_deferred_signal"
|
||||
"FileFeedStoragePreFeedOptionsTest" # https://github.com/scrapy/scrapy/issues/5157
|
||||
# Fails with AssertionError
|
||||
"test_peek_fifo"
|
||||
"test_peek_one_element"
|
||||
"test_peek_lifo"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
"test_xmliter_encoding"
|
||||
"test_download"
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sopel";
|
||||
version = "7.1.0";
|
||||
version = "7.1.2";
|
||||
disabled = isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "74057d4c86cff744b1f1062f3a9c4ae99eb4f1b17048ceb083293d5f4c7e989b";
|
||||
sha256 = "sha256-8RhIw3Qt0BclH1Ws16JNuFfwiRxJ14lM6MBUK9OvNKA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -36,7 +36,8 @@ buildPythonPackage rec {
|
||||
# remove once https://github.com/sopel-irc/sopel/pull/1653 lands
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "praw>=4.0.0,<6.0.0" "praw"
|
||||
--replace "praw>=4.0.0,<6.0.0" "praw" \
|
||||
--replace "sqlalchemy<1.4" "sqlalchemy"
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
@@ -1,25 +1,44 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy27
|
||||
, mock, pytest, sybil, zope_component, twisted }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchpatch
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, sybil
|
||||
, twisted
|
||||
, zope_component
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "testfixtures";
|
||||
version = "6.17.1";
|
||||
version = "6.18.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5ec3a0dd6f71cc4c304fbc024a10cc293d3e0b852c868014b9f233203e149bda";
|
||||
sha256 = "sha256-1L0cT5DqyQpz4b3FnDHQOUPyGNaH88WgnkhHiEGor18=";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest mock sybil zope_component twisted ];
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
mock
|
||||
sybil
|
||||
zope_component
|
||||
twisted
|
||||
];
|
||||
|
||||
doCheck = !isPy27;
|
||||
checkPhase = ''
|
||||
# django is too much hasle to setup at the moment
|
||||
pytest -W ignore::DeprecationWarning \
|
||||
--ignore=testfixtures/tests/test_django \
|
||||
-k 'not (log_then_patch or our_wrap_dealing_with_mock_patch or patch_with_dict)' \
|
||||
testfixtures/tests
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
# Django is too much hasle to setup at the moment
|
||||
"testfixtures/tests/test_django"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"testfixtures/tests"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "testfixtures" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/Simplistix/testfixtures";
|
||||
|
||||
Reference in New Issue
Block a user