diff options
Diffstat (limited to 'pkgs/development/python-modules/mocket/default.nix')
-rw-r--r-- | pkgs/development/python-modules/mocket/default.nix | 118 |
1 files changed, 55 insertions, 63 deletions
diff --git a/pkgs/development/python-modules/mocket/default.nix b/pkgs/development/python-modules/mocket/default.nix index 2a44707bff1b3..8376b690589d7 100644 --- a/pkgs/development/python-modules/mocket/default.nix +++ b/pkgs/development/python-modules/mocket/default.nix @@ -1,51 +1,50 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, stdenv - -# build-system -, hatchling - -# dependencies -, decorator -, httptools -, python-magic -, urllib3 - -# optional-dependencies -, xxhash -, pook - -# tests -, aiohttp -, asgiref -, fastapi -, gevent -, httpx -, psutil -, pytest-asyncio -, pytestCheckHook -, redis -, redis-server -, requests -, sure +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + stdenv, + + # build-system + hatchling, + + # dependencies + decorator, + httptools, + python-magic, + urllib3, + + # optional-dependencies + xxhash, + pook, + + # tests + aiohttp, + asgiref, + fastapi, + gevent, + httpx, + psutil, + pytest-asyncio, + pytestCheckHook, + redis, + redis-server, + requests, + sure, }: buildPythonPackage rec { pname = "mocket"; - version = "3.12.4"; + version = "3.12.5"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-O+IRX59Z4D188XEmiSCT8H3sg1jhtaboHS3QINEnE0s="; + hash = "sha256-6yWo7SBlVldK+AxUBnQOXjQBxz9HbIC+Ch977xiZxek="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ decorator @@ -55,28 +54,25 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - pook = [ - pook - ]; - speedups = [ - xxhash - ]; + pook = [ pook ]; + speedups = [ xxhash ]; }; - nativeCheckInputs = [ - asgiref - fastapi - gevent - httpx - psutil - pytest-asyncio - pytestCheckHook - redis - requests - sure - ] ++ lib.optionals (pythonOlder "3.12") [ - aiohttp - ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + nativeCheckInputs = + [ + asgiref + fastapi + gevent + httpx + psutil + pytest-asyncio + pytestCheckHook + redis + requests + sure + ] + ++ lib.optionals (pythonOlder "3.12") [ aiohttp ] + ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); preCheck = lib.optionalString stdenv.isLinux '' ${redis-server}/bin/redis-server & @@ -101,13 +97,9 @@ buildPythonPackage rec { "test_no_dangling_fds" ]; - disabledTestPaths = lib.optionals stdenv.isDarwin [ - "tests/main/test_redis.py" - ]; + disabledTestPaths = lib.optionals stdenv.isDarwin [ "tests/main/test_redis.py" ]; - pythonImportsCheck = [ - "mocket" - ]; + pythonImportsCheck = [ "mocket" ]; meta = with lib; { changelog = "https://github.com/mindflayer/python-mocket/releases/tag/${version}"; |