at 23.05-pre 1.0 kB view raw
1{ stdenv 2, lib 3, fetchFromGitHub 4, buildPythonPackage 5, rustPlatform 6, pythonOlder 7, openssl 8, perl 9, pkgs 10}: 11 12buildPythonPackage rec { 13 pname = "clvm_rs"; 14 version = "0.1.19"; 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "Chia-Network"; 19 repo = "clvm_rs"; 20 rev = version; 21 sha256 = "sha256-mCKY/PqNOUTaRsFDxQBvbTD6wC4qzP0uv5FldYkwl6c="; 22 }; 23 24 cargoDeps = rustPlatform.fetchCargoTarball { 25 inherit src; 26 name = "${pname}-${version}"; 27 sha256 = "sha256-TmrR8EeySsGWXohMdo3dCX4oT3l9uLVv5TUeRxCBQeE="; 28 }; 29 30 format = "pyproject"; 31 32 buildAndTestSubdir = "wheel"; 33 34 nativeBuildInputs = [ 35 perl # used by openssl-sys to configure 36 ] ++ (with rustPlatform; [ 37 cargoSetupHook 38 maturinBuildHook 39 ]); 40 41 buildInputs = [ openssl ]; 42 43 pythonImportsCheck = [ "clvm_rs" ]; 44 45 meta = with lib; { 46 broken = stdenv.isDarwin; 47 homepage = "https://chialisp.com/"; 48 description = "Rust implementation of clvm"; 49 license = licenses.asl20; 50 maintainers = teams.chia.members; 51 }; 52}