blob: 0760c299b336e2987ff407f805de8feeee62cba2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
# dependencies
typing-extensions,
# nativeCheckInputs
pytestCheckHook,
pytest-xdist,
}:
buildPythonPackage rec {
pname = "eth-typing";
version = "5.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "ethereum";
repo = "eth-typing";
tag = "v${version}";
hash = "sha256-w/xYqDmtlNs9dk4lTX0zxjdlUc7l7vi8ZnSE62W0m8o=";
};
build-system = [ setuptools ];
dependencies = [ typing-extensions ];
nativeCheckInputs = [
pytestCheckHook
pytest-xdist
];
pythonImportsCheck = [ "eth_typing" ];
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ siraben ];
};
}
|