diff --git a/pkgs/development/python-modules/python-socks/default.nix b/pkgs/development/python-modules/python-socks/default.nix index 8c77598f91cf..1551e5748a7f 100644 --- a/pkgs/development/python-modules/python-socks/default.nix +++ b/pkgs/development/python-modules/python-socks/default.nix @@ -10,14 +10,15 @@ pytest-trio, pytestCheckHook, setuptools, + tiny-proxy, trio, trustme, yarl, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "python-socks"; - version = "2.8.0"; + version = "2.8.1"; pyproject = true; __darwinAllowLocalNetworking = true; @@ -25,8 +26,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "romis2012"; repo = "python-socks"; - tag = "v${version}"; - hash = "sha256-b19DfvoJo/9NCjgZ+07WdZGnXNS7/f+FgGdU8s1k2io="; + tag = "v${finalAttrs.version}"; + hash = "sha256-Eu4xeBZbZvAGfFArMiUlUQQa4yywKWj+azv+OHiKJfU="; }; build-system = [ setuptools ]; @@ -43,14 +44,13 @@ buildPythonPackage rec { anyio = [ anyio ]; }; - doCheck = false; # requires tiny_proxy module - nativeCheckInputs = [ anyio flask pytest-asyncio pytest-trio pytestCheckHook + tiny-proxy trustme yarl ]; @@ -58,10 +58,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "python_socks" ]; meta = { - changelog = "https://github.com/romis2012/python-socks/releases/tag/${src.tag}"; + changelog = "https://github.com/romis2012/python-socks/releases/tag/${finalAttrs.src.tag}"; description = "Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python"; homepage = "https://github.com/romis2012/python-socks"; license = lib.licenses.asl20; maintainers = [ ]; }; -} +})