1{ lib
2, base58
3, buildPythonPackage
4, ecdsa
5, fetchPypi
6, sympy
7}:
8
9buildPythonPackage rec {
10 pname = "bitcoin-utils-fork-minimal";
11 version = "0.4.11.6";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-DzibvC8qr/5ync59cfFB7tBmZWkPs/hKh+e5OC4lcEw=";
17 };
18
19 propagatedBuildInputs = [
20 base58
21 ecdsa
22 sympy
23 ];
24
25 preConfigure = ''
26 substituteInPlace setup.py \
27 --replace "sympy==1.3" "sympy>=1.3" \
28 --replace "base58==2.1.0" "base58>=2.1.0" \
29 --replace "ecdsa==0.17.0" "ecdsa>=0.17.0"
30 '';
31
32 # Project doesn't ship tests
33 doCheck = false;
34
35 pythonImportsCheck = [
36 "bitcoinutils"
37 ];
38
39 meta = with lib; {
40 description = "Bitcoin utility functions";
41 homepage = "https://github.com/doersf/python-bitcoin-utils";
42 license = licenses.mit;
43 maintainers = with maintainers; [ fab ];
44 };
45}