python313Packages.dateparser: 1.2.0 -> 1.2.1 (#380346)
This commit is contained in:
@@ -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 ];
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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" ];
|
||||
|
||||
@@ -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 = [ ];
|
||||
};
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
Reference in New Issue
Block a user