diff --git a/pkgs/development/python-modules/block-io/default.nix b/pkgs/development/python-modules/block-io/default.nix new file mode 100644 index 000000000000..c0df26143ec3 --- /dev/null +++ b/pkgs/development/python-modules/block-io/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchPypi, fetchpatch, buildPythonPackage, base58, ecdsa, pycryptodome, requests, six }: + +buildPythonPackage rec { + pname = "block-io"; + version = "1.1.8"; + + src = fetchPypi { + inherit pname version; + sha256 = "15468pvpcp41ly7kjpmikpyi4av57d9zhf5j1v01j78r1xqqk56g"; + }; + + propagatedBuildInputs = [ + base58 + ecdsa + pycryptodome + requests + six + ]; + + # Tests needs a BlockIO API key to run properly + # https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18 + doCheck = false; + + meta = with stdenv.lib; { + description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io"; + homepage = https://github.com/BlockIo/block_io-python; + license = licenses.mit; + maintainers = with maintainers; [ nyanloutre ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 940c832afa2c..4e488cfd2947 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1095,6 +1095,8 @@ in { }; blessed = callPackage ../development/python-modules/blessed {}; + + block-io = callPackage ../development/python-modules/block-io {}; # Build boost for this specific Python version # TODO: use separate output for libboost_python.so