1{ lib
2, buildPythonPackage
3, fetchPypi
4, future
5}:
6
7buildPythonPackage rec {
8 pname = "blockchain";
9 version = "1.4.4";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "1qpbmz6dk5gx1996dswpipwhj6sp5j0dlfap012l46zqnvmkxanv";
14 };
15
16 postPatch = ''
17 substituteInPlace setup.py --replace "enum-compat" ""
18 '';
19
20 propagatedBuildInputs = [
21 future
22 ];
23
24 # tests are interacting with the API and not mocking the calls
25 doCheck = false;
26
27 pythonImportsCheck = [ "blockchain" ];
28
29 meta = with lib; {
30 description = "Python client Blockchain Bitcoin Developer API";
31 homepage = "https://github.com/blockchain/api-v1-client-python";
32 license = with licenses; [ mit ];
33 maintainers = with maintainers; [ fab ];
34 };
35}