1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 pythonOlder,
6 pytestCheckHook,
7 typing-extensions,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "eth-typing";
13 version = "5.0.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "ethereum";
20 repo = "eth-typing";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-WFTx5u85Gp+jQPWS3BTk1Pky07C2fVAzwrG/c3hSRzM=";
23 };
24
25 build-system = [ setuptools ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 dependencies = [ typing-extensions ];
30
31 pythonImportsCheck = [ "eth_typing" ];
32
33 meta = with lib; {
34 description = "Common type annotations for Ethereum Python packages";
35 homepage = "https://github.com/ethereum/eth-typing";
36 changelog = "https://github.com/ethereum/eth-typing/blob/v${version}/docs/release_notes.rst";
37 license = licenses.mit;
38 maintainers = with maintainers; [ siraben ];
39 };
40}