mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 07:16:34 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
44 lines
789 B
Nix
44 lines
789 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
buildPythonPackage,
|
|
eth-utils,
|
|
hypothesis,
|
|
pytestCheckHook,
|
|
pydantic,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rlp";
|
|
version = "4.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ethereum";
|
|
repo = "pyrlp";
|
|
rev = "v${version}";
|
|
hash = "sha256-moerdcAJXqhlzDnTlvxL3Nzz485tOzJVCPlGrof80eQ=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ eth-utils ];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
pydantic
|
|
];
|
|
|
|
pythonImportsCheck = [ "rlp" ];
|
|
|
|
disabledTests = [ "test_install_local_wheel" ];
|
|
|
|
meta = {
|
|
description = "RLP serialization library";
|
|
homepage = "https://github.com/ethereum/pyrlp";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|