Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / eth-rlp / default.nix
blob0b2e9468c2aa29791c0e81bac8dda8b8268b4b5f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , eth-hash
5 , eth-utils
6 , hexbytes
7 , pytestCheckHook
8 , pythonOlder
9 , rlp
12 buildPythonPackage rec {
13   pname = "eth-rlp";
14   version = "0.3.0";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "ethereum";
19     repo = "eth-rlp";
20     rev = "v${version}";
21     hash = "sha256-wfmRjHFu6H3J6hNin8ZA2454xXrLgcUdeR8iGXFomRE=";
22   };
24   propagatedBuildInputs = [
25     hexbytes
26     eth-utils
27     rlp
28   ];
30   nativeCheckInputs = [
31     pytestCheckHook
32   ] ++ eth-hash.optional-dependencies.pycryptodome;
34   pythonImportsCheck = [ "eth_rlp" ];
36   meta = with lib; {
37     description = "RLP definitions for common Ethereum objects";
38     homepage = "https://github.com/ethereum/eth-rlp";
39     license = licenses.mit;
40     maintainers = with maintainers; [ ];
41   };