python311Packages.merkletools: remove pysha3
This commit is contained in:
parent
0838fa3aba
commit
7221014609
1 changed files with 28 additions and 5 deletions
|
@ -1,19 +1,42 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, pysha3 }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "merkletools";
|
||||
version = "1.0.3";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0pdik5sil0xcrwdcgdfy86c5qcfrz24r0gfc8m8bxa0i7h7x2v9l";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Tierion";
|
||||
repo = "pymerkletools";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-pd7Wxi7Sk95RcrFOTOtl725nIXidva3ftdKSGxHYPTA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pysha3 ];
|
||||
postPatch = ''
|
||||
# pysha3 is deprecated and not needed for Python > 3.6
|
||||
substituteInPlace setup.py \
|
||||
--replace "install_requires=install_requires" "install_requires=[],"
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"merkletools"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python tools for creating Merkle trees, generating Merkle proofs, and verification of Merkle proofs";
|
||||
homepage = "https://github.com/Tierion/pymerkletools";
|
||||
changelog = "https://github.com/Tierion/pymerkletools/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ Madouura ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue