Skip to content

Commit 21aaf7e

Browse files
authored
python313Packages.dateparser: 1.2.0 -> 1.2.1 (#380346)
2 parents 28dac49 + b600aa2 commit 21aaf7e

File tree

7 files changed

+59
-43
lines changed

7 files changed

+59
-43
lines changed

pkgs/development/python-modules/dateparser/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
buildPythonPackage rec {
2424
pname = "dateparser";
25-
version = "1.2.0";
25+
version = "1.2.1";
2626

2727
disabled = pythonOlder "3.7";
2828

@@ -32,7 +32,7 @@ buildPythonPackage rec {
3232
owner = "scrapinghub";
3333
repo = "dateparser";
3434
tag = "v${version}";
35-
hash = "sha256-mnL44hojebOwP6qtEBHs5QM4uRmLuGlVNr+sM3jZEKE=";
35+
hash = "sha256-O0FsLWbH0kGjwGCTklBMVVqosxXlXRyS9aAcggtBLsA=";
3636
};
3737

3838
nativeBuildInputs = [ setuptools ];

pkgs/development/python-modules/lacuscore/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
buildPythonPackage rec {
1919
pname = "lacuscore";
20-
version = "1.12.8";
20+
version = "1.12.10";
2121
pyproject = true;
2222

2323
disabled = pythonOlder "3.9";
@@ -26,7 +26,7 @@ buildPythonPackage rec {
2626
owner = "ail-project";
2727
repo = "LacusCore";
2828
tag = "v${version}";
29-
hash = "sha256-blQhnQoNMXQhNQJ7EXawoYHxbPEgPmLltoLQTzsKwtA=";
29+
hash = "sha256-IKH7c1/MgjlfJ9tKVeTXW8MdLIc7P+jitvQkZn9f75Y=";
3030
};
3131

3232
pythonRelaxDeps = [

pkgs/development/python-modules/playwrightcapture/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
buildPythonPackage rec {
2424
pname = "playwrightcapture";
25-
version = "1.27.6";
25+
version = "1.27.8";
2626
pyproject = true;
2727

2828
disabled = pythonOlder "3.9";
@@ -31,7 +31,7 @@ buildPythonPackage rec {
3131
owner = "Lookyloo";
3232
repo = "PlaywrightCapture";
3333
tag = "v${version}";
34-
hash = "sha256-Kh4F5dicbVvM9k8T4iMERMuze3Ztawi9LXH7+udtZFU=";
34+
hash = "sha256-iIUwBX3MQHeEmYwesW2Dm45tr9FYyq9GtLGbyV784RA=";
3535
};
3636

3737
pythonRelaxDeps = [

pkgs/development/python-modules/python-binance/default.nix

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,39 @@
11
{
22
lib,
33
aiohttp,
4+
aioresponses,
45
buildPythonPackage,
56
dateparser,
67
fetchFromGitHub,
7-
fetchpatch,
88
pycryptodome,
9+
pytest-asyncio,
910
pytestCheckHook,
1011
pythonOlder,
11-
requests,
1212
requests-mock,
13+
requests,
1314
six,
1415
ujson,
16+
setuptools,
1517
websockets,
1618
}:
1719

1820
buildPythonPackage rec {
1921
pname = "python-binance";
2022
version = "1.0.27";
21-
format = "setuptools";
23+
pyproject = true;
2224

23-
disabled = pythonOlder "3.6";
25+
disabled = pythonOlder "3.11";
2426

2527
src = fetchFromGitHub {
2628
owner = "sammchardy";
27-
repo = pname;
29+
repo = "python-binance";
2830
tag = "v${version}";
2931
hash = "sha256-nsJuHxPXhMBRY4BUDDLj5sHK/GuJA0pBU3RGUDxVm50=";
3032
};
3133

32-
patches = [
33-
(fetchpatch {
34-
name = "fix-unable-to-determine-version-error.patch";
35-
url = "https://github.com/sammchardy/python-binance/commit/1b9dd4853cafccf6cdacc13bb64a18632a79a6f1.patch";
36-
hash = "sha256-6KRHm2cZRcdD6qMdRAwlea4qLZ1/1YFzZAQ7Ph4XMCs=";
37-
})
38-
];
34+
build-system = [ setuptools ];
3935

40-
propagatedBuildInputs = [
36+
dependencies = [
4137
aiohttp
4238
dateparser
4339
requests
@@ -48,14 +44,39 @@ buildPythonPackage rec {
4844
];
4945

5046
nativeCheckInputs = [
47+
aioresponses
48+
pytest-asyncio
5149
pytestCheckHook
5250
requests-mock
5351
];
5452

5553
disabledTestPaths = [
5654
# Tests require network access
5755
"tests/test_api_request.py"
58-
"tests/test_historical_klines.py"
56+
"tests/test_async_client.py"
57+
"tests/test_async_client_futures.py"
58+
"tests/test_async_client_margin.py"
59+
"tests/test_async_client_options.py"
60+
"tests/test_async_client_portfolio.py"
61+
"tests/test_async_client_ws_api.py"
62+
"tests/test_async_client_ws_futures_requests.py"
63+
"tests/test_client.py"
64+
"tests/test_client_futures.py"
65+
"tests/test_client_gift_card.py"
66+
"tests/test_client_margin.py"
67+
"tests/test_client_options.py"
68+
"tests/test_client_portfolio.py"
69+
"tests/test_client_ws_api.py"
70+
"tests/test_client_ws_futures_requests.py"
71+
"tests/test_depth_cache.py"
72+
"tests/test_get_order_book.py"
73+
"tests/test_ping.py"
74+
"tests/test_reconnecting_websocket.py"
75+
"tests/test_socket_manager.py"
76+
"tests/test_streams.py"
77+
"tests/test_threaded_socket_manager.py"
78+
"tests/test_threaded_stream.py"
79+
"tests/test_ws_api.py"
5980
];
6081

6182
pythonImportsCheck = [ "binance" ];

pkgs/development/python-modules/secure/default.nix

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,42 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5-
isPy27,
65
maya,
6+
pythonOlder,
77
requests,
8+
pytestCheckHook,
9+
setuptools,
810
}:
911

1012
buildPythonPackage rec {
11-
version = "1.0.1";
12-
format = "setuptools";
1313
pname = "secure";
14-
disabled = isPy27;
14+
version = "1.0.1";
15+
pyproject = true;
16+
17+
disabled = pythonOlder "3.10";
1518

1619
src = fetchFromGitHub {
1720
owner = "typeerror";
1821
repo = "secure.py";
1922
tag = "v${version}";
20-
sha256 = "sha256-lyosOejztFEINGKO0wAYv3PWBL7vpmAq+eQunwP9h5I=";
23+
hash = "sha256-lyosOejztFEINGKO0wAYv3PWBL7vpmAq+eQunwP9h5I=";
2124
};
2225

23-
propagatedBuildInputs = [
26+
build-system = [ setuptools ];
27+
28+
dependencies = [
2429
maya
2530
requests
2631
];
2732

28-
# no tests in release
29-
doCheck = false;
33+
nativeCheckInputs = [ pytestCheckHook ];
3034

3135
pythonImportsCheck = [ "secure" ];
3236

3337
meta = with lib; {
3438
description = "Adds optional security headers and cookie attributes for Python web frameworks";
3539
homepage = "https://github.com/TypeError/secure.py";
40+
changelog = "https://github.com/TypeError/secure/releases/tag/v${version}";
3641
license = licenses.mit;
3742
maintainers = [ ];
3843
};

pkgs/development/python-modules/trafilatura/default.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@ buildPythonPackage rec {
2626
hash = "sha256-zrcJSm7Ml+cv6nPH26NnFMXFtXe2Rw5FINyok3BtYkc=";
2727
};
2828

29-
# Patch out gui cli because it is not supported in this packaging and
30-
# nixify path to the trafilatura binary in the test suite
3129
postPatch = ''
32-
substituteInPlace setup.py \
33-
--replace-fail '"trafilatura_gui=trafilatura.gui:main",' ""
30+
# nixify path to the trafilatura binary in the test suite
3431
substituteInPlace tests/cli_tests.py \
3532
--replace-fail 'trafilatura_bin = "trafilatura"' \
3633
'trafilatura_bin = "${placeholder "out"}/bin/trafilatura"'
@@ -57,6 +54,7 @@ buildPythonPackage rec {
5754
"test_download"
5855
"test_feeds_helpers"
5956
"test_fetch"
57+
"test_input_type"
6058
"test_is_live_page"
6159
"test_meta_redirections"
6260
"test_probing"

pkgs/development/python-modules/w3lib/default.nix

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchpatch,
54
fetchPypi,
65
pytestCheckHook,
76
pythonOlder,
@@ -10,23 +9,16 @@
109

1110
buildPythonPackage rec {
1211
pname = "w3lib";
13-
version = "2.2.1";
12+
version = "2.3.1";
1413
pyproject = true;
1514

16-
disabled = pythonOlder "3.7";
15+
disabled = pythonOlder "3.9";
1716

1817
src = fetchPypi {
1918
inherit pname version;
20-
hash = "sha256-dW/y2Uxk5ByNfAxZ/qEqXQvFXjOlMceYi0oWPeubB90=";
19+
hash = "sha256-XIrAKjAnV2F0wrYeuaIXC6Gxl8rnZwgHcbbx/r2iSaQ=";
2120
};
2221

23-
patches = [
24-
(fetchpatch {
25-
url = "https://github.com/scrapy/w3lib/commit/44dcf9160c3f207658d6ce808307c80c9ca835a2.patch";
26-
hash = "sha256-fUQ2oWpAJeslgemt+EUxKLH3Ywpg441FCOBLFJCZ+Ac=";
27-
})
28-
];
29-
3022
build-system = [ setuptools ];
3123

3224
nativeCheckInputs = [ pytestCheckHook ];

0 commit comments

Comments
 (0)