Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / eth-utils / default.nix
blob8686da98d92a91ed4ab4b0140cfc0bc8433a2d67
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , eth-hash
5 , eth-typing
6 , cytoolz
7 , hypothesis
8 , isPyPy
9 , pytestCheckHook
10 , pythonOlder
11 , setuptools
12 , toolz
15 buildPythonPackage rec {
16   pname = "eth-utils";
17   version = "4.0.0";
18   pyproject = true;
19   disabled = pythonOlder "3.6";
21   src = fetchFromGitHub {
22     owner = "ethereum";
23     repo = "eth-utils";
24     rev = "v${version}";
25     hash = "sha256-k2pHM1eKPzoGxZlU6yT7bZMv4CCWGaZaSnFHSbT76Zo=";
26   };
28   nativeBuildInputs = [
29     setuptools
30   ];
32   propagatedBuildInputs = [
33     eth-hash
34     eth-typing
35   ] ++ lib.optional (!isPyPy) cytoolz
36   ++ lib.optional isPyPy toolz;
38   nativeCheckInputs = [
39     hypothesis
40     pytestCheckHook
41   ] ++ eth-hash.optional-dependencies.pycryptodome;
43   # Removing a poorly written test case from test suite.
44   # TODO work with the upstream
45   disabledTestPaths = [
46     "tests/functional-utils/test_type_inference.py"
47   ];
49   pythonImportsCheck = [ "eth_utils" ];
51   meta = {
52     changelog = "https://github.com/ethereum/eth-utils/blob/${src.rev}/docs/release_notes.rst";
53     description = "Common utility functions for codebases which interact with ethereum";
54     homepage = "https://github.com/ethereum/eth-utils";
55     license = lib.licenses.mit;
56     maintainers = with lib.maintainers; [ ];
57   };