Merge pull request #117108 from fabaff/bump-aioresponses

This commit is contained in:
Sandro 2021-03-21 18:11:25 +01:00 committed by GitHub
commit a4a34b6fa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 38 deletions

View file

@ -1,22 +1,22 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pbr
, aiohttp
, ddt
, asynctest
, pytest
, buildPythonPackage
, ddt
, fetchPypi
, pbr
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aioresponses";
version = "0.7.1";
version = "0.7.2";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "f65bba2be1e9a4997ee166bc0161a50be0fef7350ad09e6afdb2adccf74dfefe";
sha256 = "sha256-guSV0Ri3SJaqW01H4X7/teLMeD5RCuOVzq3l6Hyr6Jo=";
};
nativeBuildInputs = [
@ -30,13 +30,16 @@ buildPythonPackage rec {
checkInputs = [
asynctest
ddt
pytest
pytestCheckHook
];
# Skip a test which makes requests to httpbin.org
checkPhase = ''
pytest -k "not (test_address_as_instance_of_url_combined_with_pass_through or test_pass_through_with_origin_params)"
'';
disabledTests = [
# Skip a test which makes requests to httpbin.org
"test_address_as_instance_of_url_combined_with_pass_through"
"test_pass_through_with_origin_params"
];
pythonImportsCheck = [ "aioresponses" ];
meta = {
description = "A helper to mock/fake web requests in python aiohttp package";

View file

@ -1,54 +1,55 @@
{ lib
, astropy
, buildPythonPackage
, fetchPypi
, pytest-astropy
, semantic-version
, pyyaml
, jsonschema
, six
, numpy
, isPy27
, astropy
, setuptools_scm
, setuptools
, packaging
, pytest-astropy
, pytestCheckHook
, pythonOlder
, pyyaml
, semantic-version
, setuptools-scm
}:
buildPythonPackage rec {
pname = "asdf";
version = "2.7.1";
disabled = isPy27;
version = "2.7.3";
disabled = pythonOlder "3.6";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "4ba2e31cb24b974a10dfae3edee23db2e6bea2d00608604d062366aa3af6e81a";
sha256 = "11dyr295wn5m2pcynlwj7kgw9xr66msfvwn1m6a5vv13vzj19spp";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
jsonschema
numpy
packaging
pyyaml
semantic-version
];
checkInputs = [
pytest-astropy
astropy
pytestCheckHook
];
propagatedBuildInputs = [
semantic-version
pyyaml
jsonschema
six
numpy
setuptools_scm
setuptools
];
checkPhase = ''
PY_IGNORE_IMPORTMISMATCH=1 pytest
preCheck = ''
export PY_IGNORE_IMPORTMISMATCH=1
'';
pythonImportsCheck = [ "asdf" ];
meta = with lib; {
description = "Python tools to handle ASDF files";
homepage = "https://github.com/spacetelescope/asdf";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
# many ValueError in tests
broken = true;
};
}