Merge pull request #154937 from fabaff/fix-praw
python3Packages.testfixtures: disable failing tests
This commit is contained in:
commit
95a2fa4c83
@ -7,7 +7,6 @@
|
|||||||
, clickclick
|
, clickclick
|
||||||
, decorator
|
, decorator
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, flask
|
, flask
|
||||||
, inflection
|
, inflection
|
||||||
, jsonschema
|
, jsonschema
|
||||||
@ -23,14 +22,16 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "connexion";
|
pname = "connexion";
|
||||||
version = "2.9.0";
|
version = "2.10.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "zalando";
|
owner = "zalando";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "13smcg2w24zr2sv1968g9p9m6f18nqx688c96qdlmldnszgzf5ik";
|
sha256 = "sha256-a1wj72XpjXvhWCxRLrGeDatS8a4ij9YAm9FGhTBq/i8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -55,16 +56,20 @@ buildPythonPackage rec {
|
|||||||
testfixtures
|
testfixtures
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
postPatch = ''
|
||||||
# No minor release for later versions, https://github.com/zalando/connexion/pull/1402
|
substituteInPlace setup.py \
|
||||||
(fetchpatch {
|
--replace "PyYAML>=5.1,<6" "PyYAML>=5.1" \
|
||||||
name = "allow-later-flask-and-werkzeug-releases.patch";
|
--replace "jsonschema>=2.5.1,<4" "jsonschema>=2.5.1"
|
||||||
url = "https://github.com/zalando/connexion/commit/4a225d554d915fca17829652b7cb8fe119e14b37.patch";
|
'';
|
||||||
sha256 = "0dys6ymvicpqa3p8269m4yv6nfp58prq3fk1gcx1z61h9kv84g1k";
|
|
||||||
})
|
disabledTests = [
|
||||||
|
# We have a later PyYAML release
|
||||||
|
"test_swagger_yaml"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "connexion" ];
|
pythonImportsCheck = [
|
||||||
|
"connexion"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Swagger/OpenAPI First framework on top of Flask";
|
description = "Swagger/OpenAPI First framework on top of Flask";
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy27
|
|
||||||
, mock
|
, mock
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonAtLeast
|
||||||
|
, pythonOlder
|
||||||
, sybil
|
, sybil
|
||||||
, twisted
|
, twisted
|
||||||
, zope_component
|
, zope_component
|
||||||
@ -12,6 +13,9 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "testfixtures";
|
pname = "testfixtures";
|
||||||
version = "6.18.3";
|
version = "6.18.3";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -19,29 +23,42 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
|
||||||
mock
|
mock
|
||||||
|
pytestCheckHook
|
||||||
sybil
|
sybil
|
||||||
zope_component
|
|
||||||
twisted
|
twisted
|
||||||
|
zope_component
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = !isPy27;
|
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# Django is too much hasle to setup at the moment
|
# Django is too much hasle to setup at the moment
|
||||||
"testfixtures/tests/test_django"
|
"testfixtures/tests/test_django"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
disabledTests = lib.optionals (pythonAtLeast "3.10") [
|
||||||
|
# https://github.com/simplistix/testfixtures/issues/168
|
||||||
|
"test_invalid_communicate_call"
|
||||||
|
"test_invalid_kill"
|
||||||
|
"test_invalid_parameters"
|
||||||
|
"test_invalid_poll"
|
||||||
|
"test_invalid_send_signal"
|
||||||
|
"test_invalid_terminate"
|
||||||
|
"test_invalid_wait_call"
|
||||||
|
"test_replace_delattr_cant_remove"
|
||||||
|
"test_replace_delattr_cant_remove_not_strict"
|
||||||
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"testfixtures/tests"
|
"testfixtures/tests"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "testfixtures" ];
|
pythonImportsCheck = [
|
||||||
|
"testfixtures"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Collection of helpers and mock objects for unit tests and doc tests";
|
||||||
homepage = "https://github.com/Simplistix/testfixtures";
|
homepage = "https://github.com/Simplistix/testfixtures";
|
||||||
description = "A collection of helpers and mock objects for unit tests and doc tests";
|
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ siriobalmelli ];
|
maintainers = with maintainers; [ siriobalmelli ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user