Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 95 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596{ lib, aiohttp, asgiref, buildPythonPackage, decorator, fastapi, fetchPypi, gevent, httptools, httpx, isPy3k, pook, pytest-mock, pytestCheckHook, python-magic, pythonOlder, redis, requests, sure, urllib3}:
buildPythonPackage rec { pname = "mocket"; version = "3.11.0"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-OIdLP3hHnPZ9MqrHt6G5t2SSO342+jTACgzxM6RjVYM="; };
propagatedBuildInputs = [ decorator httptools python-magic urllib3 ];
passthru.optional-dependencies = { pook = [ pook ]; };
nativeCheckInputs = [ aiohttp asgiref fastapi gevent httpx pytest-mock pytestCheckHook redis requests sure ] ++ passthru.optional-dependencies.pook;
# Skip http tests SKIP_TRUE_HTTP = true;
disabledTestPaths = [ # Requires a live Redis instance "tests/main/test_redis.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" "test_gethostbyname" ];
pythonImportsCheck = [ "mocket" ];
meta = with lib; { description = "A socket mock framework for all kinds of sockets including web-clients"; homepage = "https://github.com/mindflayer/python-mocket"; changelog = "https://github.com/mindflayer/python-mocket/releases/tag/${version}"; license = licenses.bsd3; maintainers = with maintainers; [ hexa ]; };}