2018-08-26 13:13:24 +02:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pytest, hypothesis, eth-utils }:
|
2018-04-13 19:35:29 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rlp";
|
2018-10-06 12:56:20 +02:00
|
|
|
version = "1.0.3";
|
2018-04-13 19:35:29 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-06 12:56:20 +02:00
|
|
|
sha256 = "b0ad3f3173dedf416565299f684717d4ae7620207d562d3ef94b818a40a48781";
|
2018-04-13 19:35:29 +02:00
|
|
|
};
|
|
|
|
|
2018-08-26 13:13:24 +02:00
|
|
|
checkInputs = [ pytest hypothesis ];
|
|
|
|
propagatedBuildInputs = [ eth-utils ];
|
|
|
|
|
|
|
|
# setuptools-markdown uses pypandoc which is broken at the moment
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace setup.py --replace \'setuptools-markdown\' ""
|
|
|
|
substituteInPlace setup.py --replace "long_description_markdown_filename='README.md'," ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest .
|
|
|
|
'';
|
2018-04-13 19:35:29 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A package for encoding and decoding data in and from Recursive Length Prefix notation";
|
|
|
|
homepage = "https://github.com/ethereum/pyrlp";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|