2018-08-26 12:13:24 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pytest, hypothesis, eth-utils }:
|
2018-04-13 18:35:29 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rlp";
|
2020-11-29 14:04:41 +00:00
|
|
|
version = "2.0.1";
|
2018-04-13 18:35:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:41 +00:00
|
|
|
sha256 = "665e8312750b3fc5f7002e656d05b9dcb6e93b6063df40d95c49ad90c19d1f0e";
|
2018-04-13 18:35:29 +01:00
|
|
|
};
|
|
|
|
|
2018-08-26 12:13:24 +01: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 18:35:29 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|