Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 35 lines 1.0 kB view raw
1{ lib, fetchFromGitHub, buildPythonPackage, pytest, eth-hash, eth-typing, 2 cytoolz, hypothesis }: 3 4buildPythonPackage rec { 5 pname = "eth-utils"; 6 version = "1.8.4"; 7 8 # Tests are missing from the PyPI source tarball so let's use GitHub 9 # https://github.com/ethereum/eth-utils/issues/130 10 src = fetchFromGitHub { 11 owner = "ethereum"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "1hfzb3xz3j50dgp51nx2jssh9j07np24fqmpnyr2ycsll90g1j6q"; 15 }; 16 17 checkInputs = [ pytest hypothesis ]; 18 propagatedBuildInputs = [ eth-hash eth-typing cytoolz ]; 19 20 # setuptools-markdown uses pypandoc which is broken at the moment 21 preConfigure = '' 22 substituteInPlace setup.py --replace \'setuptools-markdown\' "" 23 ''; 24 25 checkPhase = '' 26 pytest . 27 ''; 28 29 meta = { 30 description = "Common utility functions for codebases which interact with ethereum"; 31 homepage = "https://github.com/ethereum/eth-utils"; 32 license = lib.licenses.mit; 33 maintainers = with lib.maintainers; [ jluttine ]; 34 }; 35}