uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
80
pkgs/development/python-modules/mocket/default.nix
Normal file
80
pkgs/development/python-modules/mocket/default.nix
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, isPy3k
|
||||
, decorator
|
||||
, http-parser
|
||||
, python-magic
|
||||
, urllib3
|
||||
, pytestCheckHook
|
||||
, pytest-mock
|
||||
, aiohttp
|
||||
, gevent
|
||||
, redis
|
||||
, requests
|
||||
, sure
|
||||
, pook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mocket";
|
||||
version = "3.10.5";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-rF6ol5T6wH0nNmaP+lHQL8H+XZz1kl7OEe7NNO4MCtw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
decorator
|
||||
http-parser
|
||||
python-magic
|
||||
urllib3
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest-mock
|
||||
aiohttp
|
||||
gevent
|
||||
redis
|
||||
requests
|
||||
sure
|
||||
pook
|
||||
];
|
||||
|
||||
# skip http tests
|
||||
SKIP_TRUE_HTTP = true;
|
||||
pytestFlagsArray = [
|
||||
# Requires a live Redis instance
|
||||
"--ignore=tests/main/test_redis.py"
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
# Uses IsolatedAsyncioTestCase which is only available >= 3.8
|
||||
"--ignore=tests/tests38/test_http_aiohttp.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# tests that require network access (like DNS lookups)
|
||||
"test_truesendall"
|
||||
"test_truesendall_with_chunk_recording"
|
||||
"test_truesendall_with_gzip_recording"
|
||||
"test_truesendall_with_recording"
|
||||
"test_wrongpath_truesendall"
|
||||
"test_truesendall_with_dump_from_recording"
|
||||
"test_truesendall_with_recording_https"
|
||||
"test_truesendall_after_mocket_session"
|
||||
"test_real_request_session"
|
||||
"test_asyncio_record_replay"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "mocket" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A socket mock framework - for all kinds of socket animals, web-clients included";
|
||||
homepage = "https://github.com/mindflayer/python-mocket";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue