diff --git a/pkgs/development/python-modules/curl-cffi/default.nix b/pkgs/development/python-modules/curl-cffi/default.nix index 5875f4a29b9b..05ee0ca89e60 100644 --- a/pkgs/development/python-modules/curl-cffi/default.nix +++ b/pkgs/development/python-modules/curl-cffi/default.nix @@ -18,40 +18,19 @@ python-multipart, trustme, uvicorn, + websockets, writableTmpDirAsHomeHook, }: -let - # This is only used for testing and requires 12.0 specifically - # due to incompatible API changes in later versions. - websockets = buildPythonPackage rec { - pname = "websockets"; - version = "12.0"; - pyproject = true; - - src = fetchFromGitHub { - owner = "aaugustin"; - repo = "websockets"; - tag = version; - hash = "sha256-sOL3VI9Ib/PncZs5KN4dAIHOrBc7LfXqT15LO4M6qKg="; - }; - - build-system = [ setuptools ]; - - doCheck = false; - - pythonImportsCheck = [ "websockets" ]; - }; -in buildPythonPackage rec { pname = "curl-cffi"; - version = "0.14.0b2"; + version = "0.14.0"; pyproject = true; src = fetchFromGitHub { owner = "lexiforest"; repo = "curl_cffi"; tag = "v${version}"; - hash = "sha256-JXfqZTf26kl2P0OMAw/aTdjQaGtdyTpNnhRPlwMiZNw="; + hash = "sha256-5Q9oHAOjefihxj6xU1UGVTl6Ib31XqhrxLtOgI5VABs="; }; patches = [ ./use-system-libs.patch ]; @@ -114,6 +93,8 @@ buildPythonPackage rec { # FIXME ImpersonateError: Impersonating chrome136 is not supported "test_impersonate_without_version" "test_with_impersonate" + # Impersonating chrome142 is not supported + "test_cli" # InvalidURL: Invalid URL component 'path' "test_update_params" # tests access network