mirror of
https://github.com/ilyakooo0/chia.nix.git
synced 2024-10-06 02:57:41 +03:00
chia-beta: 2.0.0-b1
This commit is contained in:
parent
8b98c651a1
commit
a4da310a8c
100
packages/chia-beta/default.nix
Normal file
100
packages/chia-beta/default.nix
Normal file
@ -0,0 +1,100 @@
|
||||
{ lib
|
||||
, cacert
|
||||
, fetchFromGitHub
|
||||
, python3Packages
|
||||
}:
|
||||
|
||||
let chia = python3Packages.buildPythonApplication rec {
|
||||
pname = "chia";
|
||||
version = "2.0.0-b1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Chia-Network";
|
||||
repo = "chia-blockchain";
|
||||
rev = version;
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-A7XIjkaE5RIeKez5jGO+WjA1+qy353c5vQtXZYONees=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "==" ">="
|
||||
|
||||
cp ${cacert}/etc/ssl/certs/ca-bundle.crt mozilla-ca/cacert.pem
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
python3Packages.setuptools-scm
|
||||
];
|
||||
|
||||
# give a hint to setuptools-scm on package version
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
aiofiles
|
||||
aiohttp
|
||||
aiosqlite
|
||||
anyio
|
||||
bitstring
|
||||
boto3
|
||||
blspy
|
||||
chiapos
|
||||
chiavdf
|
||||
chiabip158
|
||||
chia-rs
|
||||
click
|
||||
clvm
|
||||
clvm-rs
|
||||
clvm-tools
|
||||
clvm-tools-rs
|
||||
colorama
|
||||
colorlog
|
||||
concurrent-log-handler
|
||||
cryptography
|
||||
dnslib
|
||||
dnspython
|
||||
fasteners
|
||||
filelock
|
||||
keyrings-cryptfile
|
||||
psutil
|
||||
pyyaml
|
||||
setproctitle
|
||||
setuptools # needs pkg_resources at runtime
|
||||
sortedcontainers
|
||||
watchdog
|
||||
websockets
|
||||
zstd
|
||||
];
|
||||
|
||||
checkInputs = with python3Packages; [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# Testsuite is expensive and non-deterministic, so it is available in
|
||||
# passthru.tests instead.
|
||||
doCheck = false;
|
||||
|
||||
disabledTests = [
|
||||
"test_spend_through_n"
|
||||
"test_spend_zero_coin"
|
||||
"test_default_cached_master_passphrase"
|
||||
"test_using_legacy_keyring"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=`mktemp -d`
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
chiaWithTests = chia.overrideAttrs (_: { doCheck = true; });
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.chia.net/";
|
||||
description = "Chia is a modern cryptocurrency built from scratch, designed to be efficient, decentralized, and secure.";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = teams.chia.members;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
in chia
|
@ -35,7 +35,7 @@ pkgs.extend (final: prev:
|
||||
src = inputs.cat-admin-tool;
|
||||
};
|
||||
chia = final.callPackage ./chia { };
|
||||
chia-beta = final.chia;
|
||||
chia-beta = final.callPackage ./chia-beta {};
|
||||
chia-rc = final.callPackage ./chia-rc {};
|
||||
chia-plotter = final.callPackage ./chia-plotter { };
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user