nixpkgs/pkgs/development/python-modules/block-io/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, fetchPypi
, bitcoin-utils-fork-minimal
, buildPythonPackage
, base58
, pycryptodome
, requests
, setuptools
, pythonOlder
}:
2018-06-26 15:28:36 +01:00
buildPythonPackage rec {
pname = "block-io";
version = "2.0.6";
format = "setuptools";
disabled = pythonOlder "3.6";
2018-06-26 15:28:36 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-M7czfpagXqoWWSu4enB3Z2hc2GtAaskI6cnJzJdpC8I=";
2018-06-26 15:28:36 +01:00
};
propagatedBuildInputs = [
base58
bitcoin-utils-fork-minimal
2018-06-26 15:28:36 +01:00
pycryptodome
requests
setuptools
2018-06-26 15:28:36 +01:00
];
preConfigure = ''
substituteInPlace setup.py \
--replace "base58==2.1.0" "base58>=2.1.0"
'';
2018-06-26 15:28:36 +01:00
# Tests needs a BlockIO API key to run properly
# https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18
doCheck = false;
pythonImportsCheck = [
"block_io"
];
meta = with lib; {
2018-06-26 15:28:36 +01:00
description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io";
homepage = "https://github.com/BlockIo/block_io-python";
2018-06-26 15:28:36 +01:00
license = licenses.mit;
maintainers = with maintainers; [ nyanloutre ];
};
}