tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python311Packages.merkletools: remove pysha3
Fabian Affolter
3 years ago
72210146
0838fa3a
+28
-5
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
merkletools
default.nix
+28
-5
pkgs/development/python-modules/merkletools/default.nix
···
1
1
-
{ lib, buildPythonPackage, fetchPypi, pysha3 }:
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, pythonOlder
5
5
+
, pytestCheckHook
6
6
+
}:
2
7
3
8
buildPythonPackage rec {
4
9
pname = "merkletools";
5
10
version = "1.0.3";
11
11
+
format = "setuptools";
6
12
7
7
-
src = fetchPypi {
8
8
-
inherit pname version;
9
9
-
sha256 = "0pdik5sil0xcrwdcgdfy86c5qcfrz24r0gfc8m8bxa0i7h7x2v9l";
13
13
+
disabled = pythonOlder "3.7";
14
14
+
15
15
+
src = fetchFromGitHub {
16
16
+
owner = "Tierion";
17
17
+
repo = "pymerkletools";
18
18
+
rev = "refs/tags/${version}";
19
19
+
hash = "sha256-pd7Wxi7Sk95RcrFOTOtl725nIXidva3ftdKSGxHYPTA=";
10
20
};
11
21
12
12
-
propagatedBuildInputs = [ pysha3 ];
22
22
+
postPatch = ''
23
23
+
# pysha3 is deprecated and not needed for Python > 3.6
24
24
+
substituteInPlace setup.py \
25
25
+
--replace "install_requires=install_requires" "install_requires=[],"
26
26
+
'';
27
27
+
28
28
+
checkInputs = [
29
29
+
pytestCheckHook
30
30
+
];
31
31
+
32
32
+
pythonImportsCheck = [
33
33
+
"merkletools"
34
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
39
+
changelog = "https://github.com/Tierion/pymerkletools/releases/tag/${version}";
17
40
license = licenses.mit;
18
41
maintainers = with maintainers; [ Madouura ];
19
42
};