Files
nixpkgs/pkgs/development/python-modules/eth-typing/default.nix
T
2025-01-04 00:19:17 +01:00

41 lines
914 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
pytestCheckHook,
typing-extensions,
setuptools,
}:
buildPythonPackage rec {
pname = "eth-typing";
version = "5.0.1";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "ethereum";
repo = "eth-typing";
tag = "v${version}";
hash = "sha256-WFTx5u85Gp+jQPWS3BTk1Pky07C2fVAzwrG/c3hSRzM=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
dependencies = [ typing-extensions ];
pythonImportsCheck = [ "eth_typing" ];
meta = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ siraben ];
};
}