depot/third_party/nixpkgs/pkgs/development/python-modules/rlp/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

42 lines
779 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, eth-utils
, hypothesis
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "rlp";
version = "3.0.0";
src = fetchFromGitHub {
owner = "ethereum";
repo = "pyrlp";
rev = "v${version}";
sha256 = "sha256-GRCq4FU38e08fREg5fweig5Y60jLT2k3Yj1Jk8OA6XY=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "'setuptools-markdown'" ""
'';
propagatedBuildInputs = [
eth-utils
];
checkInputs = [
hypothesis
pytestCheckHook
];
pythonImportsCheck = [ "rlp" ];
meta = with lib; {
description = "RLP serialization library";
homepage = "https://github.com/ethereum/pyrlp";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}