nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, fetchPypi, buildPythonPackage, pytest, hypothesis, eth-utils }:
2
3buildPythonPackage rec {
4 pname = "rlp";
5 version = "3.0.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "63b0465d2948cd9f01de449d7adfb92d207c1aef3982f20310f8009be4a507e8";
10 };
11
12 checkInputs = [ pytest hypothesis ];
13 propagatedBuildInputs = [ eth-utils ];
14
15 # setuptools-markdown uses pypandoc which is broken at the moment
16 preConfigure = ''
17 substituteInPlace setup.py --replace \'setuptools-markdown\' ""
18 substituteInPlace setup.py --replace "long_description_markdown_filename='README.md'," ""
19 '';
20
21 checkPhase = ''
22 pytest .
23 '';
24
25 meta = {
26 description = "A package for encoding and decoding data in and from Recursive Length Prefix notation";
27 homepage = "https://github.com/ethereum/pyrlp";
28 license = lib.licenses.mit;
29 maintainers = with lib.maintainers; [ gebner ];
30 };
31}