diff --git a/pkgs/development/python-modules/dateparser/default.nix b/pkgs/development/python-modules/dateparser/default.nix index 2ee14891dbda..87f08f29a55f 100644 --- a/pkgs/development/python-modules/dateparser/default.nix +++ b/pkgs/development/python-modules/dateparser/default.nix @@ -22,7 +22,7 @@ buildPythonPackage rec { pname = "dateparser"; - version = "1.2.0"; + version = "1.2.1"; disabled = pythonOlder "3.7"; @@ -32,7 +32,7 @@ buildPythonPackage rec { owner = "scrapinghub"; repo = "dateparser"; tag = "v${version}"; - hash = "sha256-mnL44hojebOwP6qtEBHs5QM4uRmLuGlVNr+sM3jZEKE="; + hash = "sha256-O0FsLWbH0kGjwGCTklBMVVqosxXlXRyS9aAcggtBLsA="; }; nativeBuildInputs = [ setuptools ]; diff --git a/pkgs/development/python-modules/lacuscore/default.nix b/pkgs/development/python-modules/lacuscore/default.nix index 46bdab1780c3..1fd803cbbd99 100644 --- a/pkgs/development/python-modules/lacuscore/default.nix +++ b/pkgs/development/python-modules/lacuscore/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "lacuscore"; - version = "1.12.8"; + version = "1.12.10"; pyproject = true; disabled = pythonOlder "3.9"; @@ -26,7 +26,7 @@ buildPythonPackage rec { owner = "ail-project"; repo = "LacusCore"; tag = "v${version}"; - hash = "sha256-blQhnQoNMXQhNQJ7EXawoYHxbPEgPmLltoLQTzsKwtA="; + hash = "sha256-IKH7c1/MgjlfJ9tKVeTXW8MdLIc7P+jitvQkZn9f75Y="; }; pythonRelaxDeps = [ diff --git a/pkgs/development/python-modules/playwrightcapture/default.nix b/pkgs/development/python-modules/playwrightcapture/default.nix index d86427837f0e..10495f4898c4 100644 --- a/pkgs/development/python-modules/playwrightcapture/default.nix +++ b/pkgs/development/python-modules/playwrightcapture/default.nix @@ -22,7 +22,7 @@ buildPythonPackage rec { pname = "playwrightcapture"; - version = "1.27.6"; + version = "1.27.8"; pyproject = true; disabled = pythonOlder "3.9"; @@ -31,7 +31,7 @@ buildPythonPackage rec { owner = "Lookyloo"; repo = "PlaywrightCapture"; tag = "v${version}"; - hash = "sha256-Kh4F5dicbVvM9k8T4iMERMuze3Ztawi9LXH7+udtZFU="; + hash = "sha256-iIUwBX3MQHeEmYwesW2Dm45tr9FYyq9GtLGbyV784RA="; }; pythonRelaxDeps = [ diff --git a/pkgs/development/python-modules/python-binance/default.nix b/pkgs/development/python-modules/python-binance/default.nix index 9d7f575ebd0f..77db7394f7e1 100644 --- a/pkgs/development/python-modules/python-binance/default.nix +++ b/pkgs/development/python-modules/python-binance/default.nix @@ -1,43 +1,39 @@ { lib, aiohttp, + aioresponses, buildPythonPackage, dateparser, fetchFromGitHub, - fetchpatch, pycryptodome, + pytest-asyncio, pytestCheckHook, pythonOlder, - requests, requests-mock, + requests, six, ujson, + setuptools, websockets, }: buildPythonPackage rec { pname = "python-binance"; version = "1.0.27"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.11"; src = fetchFromGitHub { owner = "sammchardy"; - repo = pname; + repo = "python-binance"; tag = "v${version}"; hash = "sha256-nsJuHxPXhMBRY4BUDDLj5sHK/GuJA0pBU3RGUDxVm50="; }; - patches = [ - (fetchpatch { - name = "fix-unable-to-determine-version-error.patch"; - url = "https://github.com/sammchardy/python-binance/commit/1b9dd4853cafccf6cdacc13bb64a18632a79a6f1.patch"; - hash = "sha256-6KRHm2cZRcdD6qMdRAwlea4qLZ1/1YFzZAQ7Ph4XMCs="; - }) - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ aiohttp dateparser requests @@ -48,6 +44,8 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + aioresponses + pytest-asyncio pytestCheckHook requests-mock ]; @@ -55,7 +53,30 @@ buildPythonPackage rec { disabledTestPaths = [ # Tests require network access "tests/test_api_request.py" - "tests/test_historical_klines.py" + "tests/test_async_client.py" + "tests/test_async_client_futures.py" + "tests/test_async_client_margin.py" + "tests/test_async_client_options.py" + "tests/test_async_client_portfolio.py" + "tests/test_async_client_ws_api.py" + "tests/test_async_client_ws_futures_requests.py" + "tests/test_client.py" + "tests/test_client_futures.py" + "tests/test_client_gift_card.py" + "tests/test_client_margin.py" + "tests/test_client_options.py" + "tests/test_client_portfolio.py" + "tests/test_client_ws_api.py" + "tests/test_client_ws_futures_requests.py" + "tests/test_depth_cache.py" + "tests/test_get_order_book.py" + "tests/test_ping.py" + "tests/test_reconnecting_websocket.py" + "tests/test_socket_manager.py" + "tests/test_streams.py" + "tests/test_threaded_socket_manager.py" + "tests/test_threaded_stream.py" + "tests/test_ws_api.py" ]; pythonImportsCheck = [ "binance" ]; diff --git a/pkgs/development/python-modules/secure/default.nix b/pkgs/development/python-modules/secure/default.nix index 1e4cd09e58b1..982e53783f92 100644 --- a/pkgs/development/python-modules/secure/default.nix +++ b/pkgs/development/python-modules/secure/default.nix @@ -2,37 +2,42 @@ lib, buildPythonPackage, fetchFromGitHub, - isPy27, maya, + pythonOlder, requests, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { - version = "1.0.1"; - format = "setuptools"; pname = "secure"; - disabled = isPy27; + version = "1.0.1"; + pyproject = true; + + disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "typeerror"; repo = "secure.py"; tag = "v${version}"; - sha256 = "sha256-lyosOejztFEINGKO0wAYv3PWBL7vpmAq+eQunwP9h5I="; + hash = "sha256-lyosOejztFEINGKO0wAYv3PWBL7vpmAq+eQunwP9h5I="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ maya requests ]; - # no tests in release - doCheck = false; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "secure" ]; meta = with lib; { description = "Adds optional security headers and cookie attributes for Python web frameworks"; homepage = "https://github.com/TypeError/secure.py"; + changelog = "https://github.com/TypeError/secure/releases/tag/v${version}"; license = licenses.mit; maintainers = [ ]; }; diff --git a/pkgs/development/python-modules/trafilatura/default.nix b/pkgs/development/python-modules/trafilatura/default.nix index ed68972ac89d..ecbad785b0f1 100644 --- a/pkgs/development/python-modules/trafilatura/default.nix +++ b/pkgs/development/python-modules/trafilatura/default.nix @@ -26,11 +26,8 @@ buildPythonPackage rec { hash = "sha256-zrcJSm7Ml+cv6nPH26NnFMXFtXe2Rw5FINyok3BtYkc="; }; - # Patch out gui cli because it is not supported in this packaging and - # nixify path to the trafilatura binary in the test suite postPatch = '' - substituteInPlace setup.py \ - --replace-fail '"trafilatura_gui=trafilatura.gui:main",' "" + # nixify path to the trafilatura binary in the test suite substituteInPlace tests/cli_tests.py \ --replace-fail 'trafilatura_bin = "trafilatura"' \ 'trafilatura_bin = "${placeholder "out"}/bin/trafilatura"' @@ -57,6 +54,7 @@ buildPythonPackage rec { "test_download" "test_feeds_helpers" "test_fetch" + "test_input_type" "test_is_live_page" "test_meta_redirections" "test_probing" diff --git a/pkgs/development/python-modules/w3lib/default.nix b/pkgs/development/python-modules/w3lib/default.nix index 99a336319abc..e0cfe29155a0 100644 --- a/pkgs/development/python-modules/w3lib/default.nix +++ b/pkgs/development/python-modules/w3lib/default.nix @@ -1,7 +1,6 @@ { lib, buildPythonPackage, - fetchpatch, fetchPypi, pytestCheckHook, pythonOlder, @@ -10,23 +9,16 @@ buildPythonPackage rec { pname = "w3lib"; - version = "2.2.1"; + version = "2.3.1"; pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.9"; src = fetchPypi { inherit pname version; - hash = "sha256-dW/y2Uxk5ByNfAxZ/qEqXQvFXjOlMceYi0oWPeubB90="; + hash = "sha256-XIrAKjAnV2F0wrYeuaIXC6Gxl8rnZwgHcbbx/r2iSaQ="; }; - patches = [ - (fetchpatch { - url = "https://github.com/scrapy/w3lib/commit/44dcf9160c3f207658d6ce808307c80c9ca835a2.patch"; - hash = "sha256-fUQ2oWpAJeslgemt+EUxKLH3Ywpg441FCOBLFJCZ+Ac="; - }) - ]; - build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ];