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