1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, rustPlatform 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "clvm-tools-rs"; 10 version = "0.1.30"; 11 disabled = pythonOlder "3.7"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "Chia-Network"; 16 repo = "clvm_tools_rs"; 17 rev = version; 18 hash = "sha256-7eGOJgcZcSGmvLJc5BVfWarcu9kQb/uEcnG70JWXDSw="; 19 }; 20 21 cargoDeps = rustPlatform.fetchCargoTarball { 22 inherit src; 23 name = "${pname}-${version}"; 24 hash = "sha256-46WEmp1FT6biM9A2M7z5onb45XhWjePKb6NSwLjuemc="; 25 }; 26 27 nativeBuildInputs = with rustPlatform; [ 28 cargoSetupHook 29 maturinBuildHook 30 ]; 31 32 pythonImportsCheck = [ "clvm_tools_rs" ]; 33 34 meta = with lib; { 35 homepage = "https://chialisp.com/"; 36 description = "Rust port of clvm_tools"; 37 license = licenses.asl20; 38 maintainers = teams.chia.members; 39 }; 40}