Merge pull request #121719 from drewrisinger/dr-pr-lark-parser-bump

python3Packages.lark-parser: 0.11.2 -> 0.11.3, python3Packages.cassandra-driver: 3.24.0 -> 3.25.0, pythonPackages.gremlinpython: unbreak
This commit is contained in:
Robert Schütz 2021-05-11 17:55:58 +02:00 committed by GitHub
commit b8ec4fd2a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 63 additions and 28 deletions

View File

@ -1,4 +1,8 @@
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, python, pythonOlder { stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, cython , cython
, eventlet , eventlet
, futures ? null , futures ? null
@ -21,14 +25,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cassandra-driver"; pname = "cassandra-driver";
version = "3.24.0"; version = "3.25.0";
# pypi tarball doesn't include tests # pypi tarball doesn't include tests
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "datastax"; owner = "datastax";
repo = "python-driver"; repo = "python-driver";
rev = version; rev = version;
sha256 = "1rr69hly5q810xpn8rkzxwzlq55wxxp7kwki9vfri3gh674d2wip"; sha256 = "1dn7iiavsrhh6i9hcyw0mk8j95r5ym0gbrvdca998hx2rnz5ark6";
}; };
nativeBuildInputs = [ cython ]; nativeBuildInputs = [ cython ];
@ -66,8 +70,10 @@ buildPythonPackage rec {
pytestFlagsArray = [ pytestFlagsArray = [
"tests/unit" "tests/unit"
];
disabledTestPaths = [
# requires puresasl # requires puresasl
"--ignore=tests/unit/advanced/test_auth.py" "tests/unit/advanced/test_auth.py"
]; ];
disabledTests = [ disabledTests = [
# doesn't seem to be intended to be run directly # doesn't seem to be intended to be run directly

View File

@ -1,6 +1,15 @@
{ lib, buildPythonPackage, fetchFromGitHub { lib
, pytestCheckHook, pyhamcrest, pytestrunner , buildPythonPackage
, six, isodate, tornado, aenum, radish-bdd, mock , fetchFromGitHub
, aenum
, importlib-metadata
, isodate
, six
, tornado
, pytestCheckHook
, mock
, pyhamcrest
, radish-bdd
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -22,13 +31,28 @@ buildPythonPackage rec {
--replace 'PyHamcrest>=1.9.0,<2.0.0' 'PyHamcrest' \ --replace 'PyHamcrest>=1.9.0,<2.0.0' 'PyHamcrest' \
--replace 'radish-bdd==0.8.6' 'radish-bdd' \ --replace 'radish-bdd==0.8.6' 'radish-bdd' \
--replace 'mock>=3.0.5,<4.0.0' 'mock' \ --replace 'mock>=3.0.5,<4.0.0' 'mock' \
--replace 'pytest>=4.6.4,<5.0.0' 'pytest' --replace 'pytest>=4.6.4,<5.0.0' 'pytest' \
--replace 'importlib-metadata<3.0.0' 'importlib-metadata' \
--replace 'pytest-runner==5.2' ' '
''; '';
nativeBuildInputs = [ pytestrunner ]; # simply to placate requirements # setup-requires requirements
propagatedBuildInputs = [ six isodate tornado aenum ]; nativeBuildInputs = [
importlib-metadata
];
propagatedBuildInputs = [
aenum
isodate
six
tornado
];
checkInputs = [ pytestCheckHook pyhamcrest radish-bdd mock ]; checkInputs = [
pytestCheckHook
mock
pyhamcrest
radish-bdd
];
# disable custom pytest report generation # disable custom pytest report generation
preCheck = '' preCheck = ''
@ -36,12 +60,14 @@ buildPythonPackage rec {
''; '';
# many tests expect a running tinkerpop server # many tests expect a running tinkerpop server
disabledTestPaths = [
"tests/driver/test_client.py"
"tests/driver/test_driver_remote_connection.py"
"tests/driver/test_driver_remote_connection_threaded.py"
"tests/process/test_dsl.py"
"tests/structure/io/test_functionalityio.py"
];
pytestFlagsArray = [ pytestFlagsArray = [
"--ignore=tests/driver/test_client.py"
"--ignore=tests/driver/test_driver_remote_connection.py"
"--ignore=tests/driver/test_driver_remote_connection_threaded.py"
"--ignore=tests/process/test_dsl.py"
"--ignore=tests/structure/io/test_functionalityio.py"
# disabledTests doesn't quite allow us to be precise enough for this # disabledTests doesn't quite allow us to be precise enough for this
"-k 'not (TestFunctionalGraphSONIO and (test_timestamp or test_datetime or test_uuid))'" "-k 'not (TestFunctionalGraphSONIO and (test_timestamp or test_datetime or test_uuid))'"
]; ];

View File

@ -1,35 +1,38 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, python
, regex , regex
# Test inputs
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "lark-parser"; pname = "lark-parser";
version = "0.11.2"; version = "0.11.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lark-parser"; owner = "lark-parser";
repo = "lark"; repo = "lark";
rev = version; rev = version;
sha256 = "1v1piaxpz4780km2z5i6sr9ygi9wpn09yyh999b3f4y0dcz20pbd"; sha256 = "1ggvlzpdzlrxl46fgi8cfq2rzlwn21shpdkm4pknnhfjlsinv913";
}; };
# Optional import, but fixes some re known bugs & allows advanced regex features
propagatedBuildInputs = [ regex ]; propagatedBuildInputs = [ regex ];
checkInputs = [ pytestCheckHook ]; checkPhase = ''
disabledTestPaths = [ runHook preCheck
"tests/test_nearley" # requires Js2Py package (not in nixpkgs)
]; # Official way to run the tests. Runs unittest internally.
disabledTests = [ # pytest produces issues with some test resource paths (relies on __main__)
"test_override_rule" # has issue with file access paths ${python.interpreter} -m tests
];
runHook postCheck
'';
meta = with lib; { meta = with lib; {
description = "A modern parsing library for Python, implementing Earley & LALR(1) and an easy interface"; description = "A modern parsing library for Python, implementing Earley & LALR(1) and an easy interface";
homepage = "https://github.com/lark-parser/lark"; homepage = "https://lark-parser.readthedocs.io/";
changelog = "https://github.com/lark-parser/lark/releases/tag/${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ fridh drewrisinger ]; maintainers = with maintainers; [ fridh drewrisinger ];
}; };