nixpkgs/pkgs/development/python-modules/rlp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
783 B
Nix
Raw Normal View History

2022-06-04 04:25:12 +00:00
{ lib
, fetchFromGitHub
, buildPythonPackage
, eth-utils
, hypothesis
, pytestCheckHook
}:
2018-04-13 17:35:29 +00:00
buildPythonPackage rec {
pname = "rlp";
2022-01-14 00:58:57 +00:00
version = "3.0.0";
2018-04-13 17:35:29 +00:00
2022-06-04 04:25:12 +00:00
src = fetchFromGitHub {
owner = "ethereum";
repo = "pyrlp";
rev = "v${version}";
hash = "sha256-GRCq4FU38e08fREg5fweig5Y60jLT2k3Yj1Jk8OA6XY=";
2018-04-13 17:35:29 +00:00
};
2022-06-04 04:25:12 +00:00
postPatch = ''
substituteInPlace setup.py \
--replace "'setuptools-markdown'" ""
2018-08-26 11:13:24 +00:00
'';
2022-06-04 04:25:12 +00:00
propagatedBuildInputs = [
eth-utils
];
nativeCheckInputs = [
2022-06-04 04:25:12 +00:00
hypothesis
pytestCheckHook
];
pythonImportsCheck = [ "rlp" ];
2018-04-13 17:35:29 +00:00
2022-06-04 04:25:12 +00:00
meta = with lib; {
description = "RLP serialization library";
2018-04-13 17:35:29 +00:00
homepage = "https://github.com/ethereum/pyrlp";
2022-06-04 04:25:12 +00:00
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
2018-04-13 17:35:29 +00:00
};
}