diff options
author | Louis Bettens <louis@bettens.info> | 2021-05-09 12:26:25 +0200 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-05-19 14:10:03 -0700 |
commit | e9bfad8f6af1841b6cc865fe70c4e673b8d474b9 (patch) | |
tree | 617208af8a2701399abbe938a93d0ed57c307751 /pkgs/applications | |
parent | 74365e4ff1a13e9ba95ab4524db8925334facaa4 (diff) | |
download | nixpkgs-e9bfad8f6af1841b6cc865fe70c4e673b8d474b9.tar nixpkgs-e9bfad8f6af1841b6cc865fe70c4e673b8d474b9.tar.gz nixpkgs-e9bfad8f6af1841b6cc865fe70c4e673b8d474b9.tar.bz2 nixpkgs-e9bfad8f6af1841b6cc865fe70c4e673b8d474b9.tar.lz nixpkgs-e9bfad8f6af1841b6cc865fe70c4e673b8d474b9.tar.xz nixpkgs-e9bfad8f6af1841b6cc865fe70c4e673b8d474b9.tar.zst nixpkgs-e9bfad8f6af1841b6cc865fe70c4e673b8d474b9.zip |
chia: init at 1.1.5
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/blockchains/chia/default.nix | 69 | ||||
-rw-r--r-- | pkgs/applications/blockchains/chia/dependencies.patch | 13 |
2 files changed, 82 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/chia/default.nix b/pkgs/applications/blockchains/chia/default.nix new file mode 100644 index 00000000000..0c4220b72ba --- /dev/null +++ b/pkgs/applications/blockchains/chia/default.nix @@ -0,0 +1,69 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "chia"; + version = "1.1.5"; + + src = fetchFromGitHub { + owner = "Chia-Network"; + repo = "chia-blockchain"; + rev = version; + sha256 = "ZUxWOlJGQpeQCtWt0PSdcbMackHdeuNFkxHvYDPcU8Y="; + }; + + patches = [ + # tweak version requirements to what's available in Nixpkgs + ./dependencies.patch + ]; + + nativeBuildInputs = [ + python3Packages.setuptools-scm + ]; + + # give a hint to setuptools_scm on package version + SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}"; + + propagatedBuildInputs = with python3Packages; [ + aiohttp + aiosqlite + bitstring + blspy + chiapos + chiavdf + chiabip158 + click + clvm + clvm-rs + clvm-tools + colorlog + concurrent-log-handler + cryptography + keyrings-cryptfile + pyyaml + setproctitle + setuptools # needs pkg_resources at runtime + sortedcontainers + websockets + ]; + + checkInputs = [ + python3Packages.pytestCheckHook + ]; + + disabledTests = [ + "test_spend_through_n" + "test_spend_zero_coin" + ]; + + preCheck = '' + export HOME=`mktemp -d` + ''; + + 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; + }; +} diff --git a/pkgs/applications/blockchains/chia/dependencies.patch b/pkgs/applications/blockchains/chia/dependencies.patch new file mode 100644 index 00000000000..d9575d1d392 --- /dev/null +++ b/pkgs/applications/blockchains/chia/dependencies.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index c5cf95db..b783a9e6 100644 +--- a/setup.py ++++ b/setup.py +@@ -8,7 +8,7 @@ dependencies = [ + "clvm==0.9.6", + "clvm_rs==0.1.7", + "clvm_tools==0.4.3", +- "aiohttp==3.7.4", # HTTP server for full node rpc ++ "aiohttp==3.7.4.post0", # HTTP server for full node rpc + "aiosqlite==0.17.0", # asyncio wrapper for sqlite, to store blocks + "bitstring==3.1.7", # Binary data management library + "colorlog==5.0.1", # Adds color to logs |