Merge pull request #117108 from fabaff/bump-aioresponses
This commit is contained in:
commit
a4a34b6fa5
@ -1,22 +1,22 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
, pythonOlder
|
|
||||||
, pbr
|
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, ddt
|
|
||||||
, asynctest
|
, asynctest
|
||||||
, pytest
|
, buildPythonPackage
|
||||||
|
, ddt
|
||||||
|
, fetchPypi
|
||||||
|
, pbr
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aioresponses";
|
pname = "aioresponses";
|
||||||
version = "0.7.1";
|
version = "0.7.2";
|
||||||
disabled = pythonOlder "3.5";
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "f65bba2be1e9a4997ee166bc0161a50be0fef7350ad09e6afdb2adccf74dfefe";
|
sha256 = "sha256-guSV0Ri3SJaqW01H4X7/teLMeD5RCuOVzq3l6Hyr6Jo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -30,13 +30,16 @@ buildPythonPackage rec {
|
|||||||
checkInputs = [
|
checkInputs = [
|
||||||
asynctest
|
asynctest
|
||||||
ddt
|
ddt
|
||||||
pytest
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
# Skip a test which makes requests to httpbin.org
|
disabledTests = [
|
||||||
checkPhase = ''
|
# Skip a test which makes requests to httpbin.org
|
||||||
pytest -k "not (test_address_as_instance_of_url_combined_with_pass_through or test_pass_through_with_origin_params)"
|
"test_address_as_instance_of_url_combined_with_pass_through"
|
||||||
'';
|
"test_pass_through_with_origin_params"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "aioresponses" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A helper to mock/fake web requests in python aiohttp package";
|
description = "A helper to mock/fake web requests in python aiohttp package";
|
||||||
|
@ -1,54 +1,55 @@
|
|||||||
{ lib
|
{ lib
|
||||||
|
, astropy
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pytest-astropy
|
|
||||||
, semantic-version
|
|
||||||
, pyyaml
|
|
||||||
, jsonschema
|
, jsonschema
|
||||||
, six
|
|
||||||
, numpy
|
, numpy
|
||||||
, isPy27
|
, packaging
|
||||||
, astropy
|
, pytest-astropy
|
||||||
, setuptools_scm
|
, pytestCheckHook
|
||||||
, setuptools
|
, pythonOlder
|
||||||
|
, pyyaml
|
||||||
|
, semantic-version
|
||||||
|
, setuptools-scm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "asdf";
|
pname = "asdf";
|
||||||
version = "2.7.1";
|
version = "2.7.3";
|
||||||
disabled = isPy27;
|
disabled = pythonOlder "3.6";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "4ba2e31cb24b974a10dfae3edee23db2e6bea2d00608604d062366aa3af6e81a";
|
sha256 = "11dyr295wn5m2pcynlwj7kgw9xr66msfvwn1m6a5vv13vzj19spp";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ setuptools-scm ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
jsonschema
|
||||||
|
numpy
|
||||||
|
packaging
|
||||||
|
pyyaml
|
||||||
|
semantic-version
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest-astropy
|
pytest-astropy
|
||||||
astropy
|
astropy
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
preCheck = ''
|
||||||
semantic-version
|
export PY_IGNORE_IMPORTMISMATCH=1
|
||||||
pyyaml
|
|
||||||
jsonschema
|
|
||||||
six
|
|
||||||
numpy
|
|
||||||
setuptools_scm
|
|
||||||
setuptools
|
|
||||||
];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
PY_IGNORE_IMPORTMISMATCH=1 pytest
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "asdf" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python tools to handle ASDF files";
|
description = "Python tools to handle ASDF files";
|
||||||
homepage = "https://github.com/spacetelescope/asdf";
|
homepage = "https://github.com/spacetelescope/asdf";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = [ maintainers.costrouc ];
|
||||||
# many ValueError in tests
|
|
||||||
broken = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user