504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
36 lines
772 B
Nix
36 lines
772 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, future
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "blockchain";
|
|
version = "1.4.4";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1qpbmz6dk5gx1996dswpipwhj6sp5j0dlfap012l46zqnvmkxanv";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "enum-compat" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
future
|
|
];
|
|
|
|
# tests are interacting with the API and not mocking the calls
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "blockchain" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python client Blockchain Bitcoin Developer API";
|
|
homepage = "https://github.com/blockchain/api-v1-client-python";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|