nixpkgs/pkgs/development/python-modules/eth-typing/default.nix
2022-06-23 13:29:14 -07:00

33 lines
686 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "eth-typing";
version = "3.1.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "ethereum";
repo = "eth-typing";
rev = "v${version}";
sha256 = "sha256-Xk/IfW1zuNbGdYAxXTNL9kL+ZW1bWruZ21KFV9+lv/E=";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "eth_typing" ];
meta = {
description = "Common type annotations for Ethereum Python packages";
homepage = "https://github.com/ethereum/eth-typing";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
}