nixpkgs/pkgs/development/python-modules/rlp/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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 = [ ];
};
}