python3Packages.eth-utils: cleanup
This commit is contained in:
@@ -2,21 +2,25 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
isPyPy,
|
||||
|
||||
# dependencies
|
||||
eth-hash,
|
||||
eth-typing,
|
||||
cytoolz,
|
||||
toolz,
|
||||
pydantic,
|
||||
# nativeCheckInputs
|
||||
|
||||
# tests
|
||||
hypothesis,
|
||||
mypy,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "eth-utils";
|
||||
version = "6.0.0";
|
||||
pyproject = true;
|
||||
@@ -24,7 +28,7 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "ethereum";
|
||||
repo = "eth-utils";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-U1RSKaLw/gDg4lMjkTwR/Wfb5wqQctML9CDZBILMBys=";
|
||||
};
|
||||
|
||||
@@ -35,7 +39,7 @@ buildPythonPackage rec {
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
eth-hash
|
||||
eth-typing
|
||||
]
|
||||
@@ -52,7 +56,10 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "eth_utils" ];
|
||||
|
||||
disabledTests = [ "test_install_local_wheel" ];
|
||||
disabledTests = [
|
||||
# Exception: Expected one wheel. Instead found: [] in project /build/source
|
||||
"test_install_local_wheel"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Typing tests fail like:
|
||||
@@ -61,10 +68,10 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/ethereum/eth-utils/blob/${src.rev}/docs/release_notes.rst";
|
||||
changelog = "https://github.com/ethereum/eth-utils/blob/${finalAttrs.src.tag}/docs/release_notes.rst";
|
||||
description = "Common utility functions for codebases which interact with ethereum";
|
||||
homepage = "https://github.com/ethereum/eth-utils";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ siraben ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user