diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2023-04-10 19:29:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 19:29:41 +0200 |
commit | ba1ffb7a73fe1e1fb9895d76de3c5a9c538185e4 (patch) | |
tree | a678c48c47c2be68b7a246ba3d031aa09c2b5935 | |
parent | a9a909139f21c687d856fd3b19d7fb70439c7863 (diff) | |
parent | fe16229c5ac9318c4147b332ae7ca51f6596d133 (diff) | |
download | nixpkgs-ba1ffb7a73fe1e1fb9895d76de3c5a9c538185e4.tar nixpkgs-ba1ffb7a73fe1e1fb9895d76de3c5a9c538185e4.tar.gz nixpkgs-ba1ffb7a73fe1e1fb9895d76de3c5a9c538185e4.tar.bz2 nixpkgs-ba1ffb7a73fe1e1fb9895d76de3c5a9c538185e4.tar.lz nixpkgs-ba1ffb7a73fe1e1fb9895d76de3c5a9c538185e4.tar.xz nixpkgs-ba1ffb7a73fe1e1fb9895d76de3c5a9c538185e4.tar.zst nixpkgs-ba1ffb7a73fe1e1fb9895d76de3c5a9c538185e4.zip |
Merge pull request #224231 from fabaff/aenum-bump
python310Packages.aenum: 3.1.11 -> 3.1.12
-rw-r--r-- | pkgs/development/python-modules/aenum/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/python-modules/cassandra-driver/default.nix | 80 |
2 files changed, 51 insertions, 33 deletions
diff --git a/pkgs/development/python-modules/aenum/default.nix b/pkgs/development/python-modules/aenum/default.nix index bc3bdc2fd58..ba7fcaa46e6 100644 --- a/pkgs/development/python-modules/aenum/default.nix +++ b/pkgs/development/python-modules/aenum/default.nix @@ -8,14 +8,14 @@ buildPythonPackage rec { pname = "aenum"; - version = "3.1.11"; + version = "3.1.12"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-rtLCc1R65yoNXuhpcZwCpkPaFr9QfICVj6rcfgOOP3M="; + hash = "sha256-PlMckYYKgfiF9+bpfSGa6XcsuJlYAIR4iTXa19l0LvA="; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/cassandra-driver/default.nix b/pkgs/development/python-modules/cassandra-driver/default.nix index 0ea28830afe..9b8d0fcd5ff 100644 --- a/pkgs/development/python-modules/cassandra-driver/default.nix +++ b/pkgs/development/python-modules/cassandra-driver/default.nix @@ -1,62 +1,58 @@ -{ stdenv -, lib +{ lib +, stdenv , buildPythonPackage -, fetchFromGitHub -, pythonOlder , cython , eventlet -, futures ? null -, iana-etc +, fetchFromGitHub , geomet +, gevent +, gremlinpython +, iana-etc , libev +, libredirect , mock , nose , pytestCheckHook +, pythonOlder , pytz , pyyaml , scales , six , sure -, gremlinpython -, gevent , twisted -, libredirect }: buildPythonPackage rec { pname = "cassandra-driver"; - version = "3.25.0"; + version = "3.26.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; - # pypi tarball doesn't include tests src = fetchFromGitHub { owner = "datastax"; repo = "python-driver"; - rev = version; - sha256 = "1dn7iiavsrhh6i9hcyw0mk8j95r5ym0gbrvdca998hx2rnz5ark6"; + rev = "refs/tags/${version}"; + hash = "sha256-mLQEG41WyFtXY2PJzoM4uaI4Cm+0xSIAPGhijHHbTBk="; }; postPatch = '' - substituteInPlace setup.py --replace 'geomet>=0.1,<0.3' 'geomet' + substituteInPlace setup.py \ + --replace 'geomet>=0.1,<0.3' 'geomet' ''; - nativeBuildInputs = [ cython ]; - buildInputs = [ libev ]; - propagatedBuildInputs = [ six geomet ] - ++ lib.optionals (pythonOlder "3.4") [ futures ]; + nativeBuildInputs = [ + cython + ]; - # Make /etc/protocols accessible to allow socket.getprotobyname('tcp') in sandbox, - # also /etc/resolv.conf is referenced by some tests - preCheck = (lib.optionalString stdenv.isLinux '' - echo "nameserver 127.0.0.1" > resolv.conf - export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) - export LD_PRELOAD=${libredirect}/lib/libredirect.so - '') + '' - # increase tolerance for time-based test - substituteInPlace tests/unit/io/utils.py --replace 'delta=.15' 'delta=.3' - ''; - postCheck = '' - unset NIX_REDIRECTS LD_PRELOAD - ''; + buildInputs = [ + libev + ]; + + propagatedBuildInputs = [ + six + geomet + ]; nativeCheckInputs = [ pytestCheckHook @@ -72,13 +68,34 @@ buildPythonPackage rec { twisted ]; + # Make /etc/protocols accessible to allow socket.getprotobyname('tcp') in sandbox, + # also /etc/resolv.conf is referenced by some tests + preCheck = (lib.optionalString stdenv.isLinux '' + echo "nameserver 127.0.0.1" > resolv.conf + export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) + export LD_PRELOAD=${libredirect}/lib/libredirect.so + '') + '' + # increase tolerance for time-based test + substituteInPlace tests/unit/io/utils.py --replace 'delta=.15' 'delta=.3' + ''; + + pythonImportsCheck = [ + "cassandra" + ]; + + postCheck = '' + unset NIX_REDIRECTS LD_PRELOAD + ''; + pytestFlagsArray = [ "tests/unit" ]; + disabledTestPaths = [ # requires puresasl "tests/unit/advanced/test_auth.py" ]; + disabledTests = [ # doesn't seem to be intended to be run directly "_PoolTests" @@ -91,6 +108,7 @@ buildPythonPackage rec { meta = with lib; { description = "A Python client driver for Apache Cassandra"; homepage = "http://datastax.github.io/python-driver"; + changelog = "https://github.com/datastax/python-driver/blob/${version}/CHANGELOG.rst"; license = licenses.asl20; maintainers = with maintainers; [ turion ris ]; }; |