1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, pythonOlder
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "eth-typing";
10 version = "3.1.0";
11 disabled = pythonOlder "3.6";
12
13 src = fetchFromGitHub {
14 owner = "ethereum";
15 repo = "eth-typing";
16 rev = "v${version}";
17 sha256 = "sha256-Xk/IfW1zuNbGdYAxXTNL9kL+ZW1bWruZ21KFV9+lv/E=";
18 };
19
20 checkInputs = [
21 pytestCheckHook
22 ];
23
24 pythonImportsCheck = [ "eth_typing" ];
25
26 meta = {
27 description = "Common type annotations for Ethereum Python packages";
28 homepage = "https://github.com/ethereum/eth-typing";
29 license = lib.licenses.mit;
30 maintainers = with lib.maintainers; [ SuperSandro2000 ];
31 };
32}