lol

python311Packages.merkletools: remove pysha3

+28 -5
+28 -5
pkgs/development/python-modules/merkletools/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, pysha3 }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , pytestCheckHook 6 + }: 2 7 3 8 buildPythonPackage rec { 4 9 pname = "merkletools"; 5 10 version = "1.0.3"; 11 + format = "setuptools"; 6 12 7 - src = fetchPypi { 8 - inherit pname version; 9 - sha256 = "0pdik5sil0xcrwdcgdfy86c5qcfrz24r0gfc8m8bxa0i7h7x2v9l"; 13 + disabled = pythonOlder "3.7"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "Tierion"; 17 + repo = "pymerkletools"; 18 + rev = "refs/tags/${version}"; 19 + hash = "sha256-pd7Wxi7Sk95RcrFOTOtl725nIXidva3ftdKSGxHYPTA="; 10 20 }; 11 21 12 - propagatedBuildInputs = [ pysha3 ]; 22 + postPatch = '' 23 + # pysha3 is deprecated and not needed for Python > 3.6 24 + substituteInPlace setup.py \ 25 + --replace "install_requires=install_requires" "install_requires=[]," 26 + ''; 27 + 28 + checkInputs = [ 29 + pytestCheckHook 30 + ]; 31 + 32 + pythonImportsCheck = [ 33 + "merkletools" 34 + ]; 13 35 14 36 meta = with lib; { 15 37 description = "Python tools for creating Merkle trees, generating Merkle proofs, and verification of Merkle proofs"; 16 38 homepage = "https://github.com/Tierion/pymerkletools"; 39 + changelog = "https://github.com/Tierion/pymerkletools/releases/tag/${version}"; 17 40 license = licenses.mit; 18 41 maintainers = with maintainers; [ Madouura ]; 19 42 };