1{
2 lib,
3 fetchFromGitHub,
4 setuptools,
5 buildPythonPackage,
6 eth-utils,
7 hypothesis,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "rlp";
13 version = "4.0.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "ethereum";
18 repo = "pyrlp";
19 rev = "v${version}";
20 hash = "sha256-cRp+ZOPYs9kcqMKGaiYMOFBY+aPCyFqu+1/5wloLwqU=";
21 };
22
23 build-system = [ setuptools ];
24
25 propagatedBuildInputs = [ eth-utils ];
26
27 nativeCheckInputs = [
28 hypothesis
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "rlp" ];
33
34 meta = with lib; {
35 description = "RLP serialization library";
36 homepage = "https://github.com/ethereum/pyrlp";
37 license = licenses.mit;
38 maintainers = [ ];
39 };
40}