at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 # dependencies 7 eth-hash, 8 # nativeCheckInputs 9 hypothesis, 10 pytestCheckHook, 11 pytest-xdist, 12}: 13 14buildPythonPackage rec { 15 pname = "eth-bloom"; 16 version = "3.1.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "ethereum"; 21 repo = "eth-bloom"; 22 tag = "v${version}"; 23 hash = "sha256-WrBLFICPyb+1bIitHZ172A1p1VYqLR75YfJ5/IBqDr8="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ eth-hash ]; 29 30 nativeCheckInputs = [ 31 hypothesis 32 pytestCheckHook 33 pytest-xdist 34 ] 35 ++ eth-hash.optional-dependencies.pycryptodome; 36 37 pythonImportsCheck = [ "eth_bloom" ]; 38 39 disabledTests = [ 40 # not testable in nix build 41 "test_install_local_wheel" 42 ]; 43 44 meta = { 45 description = "Implementation of the Ethereum bloom filter"; 46 homepage = "https://github.com/ethereum/eth-bloom"; 47 changelog = "https://github.com/ethereum/eth-bloom/blob/v${version}/CHANGELOG.rst"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ hellwolf ]; 50 }; 51}