mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
48 lines
920 B
Nix
48 lines
920 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, pbr
|
|
, aiohttp
|
|
, ddt
|
|
, asynctest
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioresponses";
|
|
version = "0.7.1";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "f65bba2be1e9a4997ee166bc0161a50be0fef7350ad09e6afdb2adccf74dfefe";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pbr
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
];
|
|
|
|
checkInputs = [
|
|
asynctest
|
|
ddt
|
|
pytest
|
|
];
|
|
|
|
# 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)"
|
|
'';
|
|
|
|
meta = {
|
|
description = "A helper to mock/fake web requests in python aiohttp package";
|
|
homepage = "https://github.com/pnuckowski/aioresponses";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ rvl ];
|
|
};
|
|
}
|