Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fac47806b15a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bacfa2d9200e
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 25, 2021

  1. Copy the full SHA
    bacfa2d View commit details
Showing with 5 additions and 12 deletions.
  1. +5 −12 pkgs/development/python-modules/eth-utils/default.nix
17 changes: 5 additions & 12 deletions pkgs/development/python-modules/eth-utils/default.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
{ lib, fetchFromGitHub, buildPythonPackage, pytest, eth-hash, eth-typing,
{ lib, fetchFromGitHub, buildPythonPackage, pytestCheckHook, eth-hash, eth-typing,
cytoolz, hypothesis }:

buildPythonPackage rec {
pname = "eth-utils";
version = "1.8.4";
version = "1.9.5";

# Tests are missing from the PyPI source tarball so let's use GitHub
# https://github.com/ethereum/eth-utils/issues/130
src = fetchFromGitHub {
owner = "ethereum";
repo = pname;
rev = "v${version}";
sha256 = "1hfzb3xz3j50dgp51nx2jssh9j07np24fqmpnyr2ycsll90g1j6q";
sha256 = "1h3xlw74zdf6cfvqf9193lx05bpdm05pmy9ap1g7q2kx0j2b6352";
};

checkInputs = [ pytest hypothesis ];
checkInputs = [ pytestCheckHook hypothesis ];
propagatedBuildInputs = [ eth-hash eth-typing cytoolz ];

# setuptools-markdown uses pypandoc which is broken at the moment
preConfigure = ''
substituteInPlace setup.py --replace \'setuptools-markdown\' ""
'';

checkPhase = ''
pytest .
'';
pythonImportsCheck = [ "eth_utils" ];

meta = {
description = "Common utility functions for codebases which interact with ethereum";