0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
40 lines
871 B
Nix
40 lines
871 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, rustPlatform
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "clvm-tools-rs";
|
|
version = "0.1.25";
|
|
disabled = pythonOlder "3.7";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Chia-Network";
|
|
repo = "clvm_tools_rs";
|
|
rev = version;
|
|
sha256 = "sha256-s4AeXoLOtEIxCSnW5CWVZoZrAJ+wKQPklEehPAvnHMw=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
inherit src;
|
|
name = "${pname}-${version}";
|
|
sha256 = "sha256-4SjSpEMu6NAPn50u7iyAznTw4AL4+KmBvppMV4+w6Jk=";
|
|
};
|
|
|
|
nativeBuildInputs = with rustPlatform; [
|
|
cargoSetupHook
|
|
maturinBuildHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "clvm_tools_rs" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://chialisp.com/";
|
|
description = "Rust port of clvm_tools";
|
|
license = licenses.asl20;
|
|
maintainers = teams.chia.members;
|
|
};
|
|
}
|