Merge pull request #68231 from Chiiruno/dev/zeronet
Update: Zeronet, Init: pythonPackages: merkletools
This commit is contained in:
commit
d97e30068c
@ -1,19 +1,25 @@
|
||||
{ stdenv, fetchFromGitHub, python2Packages }:
|
||||
{ stdenv, fetchFromGitHub, python3Packages }:
|
||||
|
||||
python2Packages.buildPythonApplication rec {
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "zeronet";
|
||||
version = "0.6.5";
|
||||
version = "0.7.1";
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "HelloZeroNet";
|
||||
repo = "ZeroNet";
|
||||
rev = "v${version}";
|
||||
sha256 = "1b9jg525jq40czyw9xh9ck90fl9rzrdmzl2mzhqqhz23idb60j4a";
|
||||
sha256 = "04prgicm0yjh2klcxdgwx1mvlsxxi2bdkzfcvysvixbgq20wjvdk";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python2Packages; [ msgpack gevent ];
|
||||
buildPhase = "${python2Packages.python.interpreter} -O -m compileall .";
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
gevent msgpack base58 merkletools rsa pysocks pyasn1 websocket_client
|
||||
gevent-websocket rencode bitcoinlib maxminddb pyopenssl
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
${python3Packages.python.interpreter} -O -m compileall .
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share
|
||||
@ -23,7 +29,7 @@ python2Packages.buildPythonApplication rec {
|
||||
postFixup = ''
|
||||
makeWrapper "$out/share/zeronet.py" "$out/bin/zeronet" \
|
||||
--set PYTHONPATH "$PYTHONPATH" \
|
||||
--set PATH ${python2Packages.python}/bin
|
||||
--set PATH ${python3Packages.python}/bin
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
20
pkgs/development/python-modules/merkletools/default.nix
Normal file
20
pkgs/development/python-modules/merkletools/default.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pysha3 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "merkletools";
|
||||
version = "1.0.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0pdik5sil0xcrwdcgdfy86c5qcfrz24r0gfc8m8bxa0i7h7x2v9l";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pysha3 ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python tools for creating Merkle trees, generating Merkle proofs, and verification of Merkle proofs";
|
||||
homepage = "https://github.com/Tierion/pymerkletools";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ chiiruno ];
|
||||
};
|
||||
}
|
@ -3895,6 +3895,8 @@ in {
|
||||
|
||||
pymysqlsa = callPackage ../development/python-modules/pymysqlsa { };
|
||||
|
||||
merkletools = callPackage ../development/python-modules/merkletools { };
|
||||
|
||||
monosat = disabledIf (!isPy3k) (pkgs.monosat.python { inherit buildPythonPackage; inherit (self) cython; });
|
||||
|
||||
monotonic = callPackage ../development/python-modules/monotonic { };
|
||||
|
Loading…
Reference in New Issue
Block a user