From 16b5545f9f5156548019edbbf6908cb147acbbcc Mon Sep 17 00:00:00 2001 From: Florian Franzen Date: Tue, 17 Sep 2024 14:50:58 +0200 Subject: [PATCH] python312Packages.eth-typing: 5.0.1 -> 5.1.0 --- .../python-modules/eth-typing/default.nix | 34 ++++++++++++------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/eth-typing/default.nix b/pkgs/development/python-modules/eth-typing/default.nix index 0bc0c8f69bd6..19d4101c83c3 100644 --- a/pkgs/development/python-modules/eth-typing/default.nix +++ b/pkgs/development/python-modules/eth-typing/default.nix @@ -1,40 +1,48 @@ { lib, - fetchFromGitHub, buildPythonPackage, - pythonOlder, - pytestCheckHook, - typing-extensions, + fetchFromGitHub, setuptools, + # dependencies + typing-extensions, + # nativeCheckInputs + pytestCheckHook, + pytest-xdist, }: buildPythonPackage rec { pname = "eth-typing"; - version = "5.0.1"; + version = "5.1.0"; pyproject = true; - disabled = pythonOlder "3.6"; - src = fetchFromGitHub { owner = "ethereum"; repo = "eth-typing"; tag = "v${version}"; - hash = "sha256-WFTx5u85Gp+jQPWS3BTk1Pky07C2fVAzwrG/c3hSRzM="; + hash = "sha256-IOWd6WFPAYO+VZwlMilRVHtudEjHt5p8Xu4WloFB/ww="; }; build-system = [ setuptools ]; - nativeCheckInputs = [ pytestCheckHook ]; - dependencies = [ typing-extensions ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-xdist + ]; + pythonImportsCheck = [ "eth_typing" ]; - meta = with lib; { + disabledTests = [ + # side-effect: runs pip online check and is blocked by sandbox + "test_install_local_wheel" + ]; + + meta = { description = "Common type annotations for Ethereum Python packages"; homepage = "https://github.com/ethereum/eth-typing"; changelog = "https://github.com/ethereum/eth-typing/blob/v${version}/docs/release_notes.rst"; - license = licenses.mit; - maintainers = with maintainers; [ siraben ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ siraben ]; }; }