Merge pull request #42619 from nyanloutre/pythonPackages.block-io

pythonPackages.block-io: init at 1.1.8
This commit is contained in:
Frederik Rietdijk 2018-09-23 09:27:51 +02:00 committed by GitHub
commit 343ac4d2fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ stdenv, fetchFromGitHub, buildPythonPackage, pytest, pyhamcrest }:
buildPythonPackage rec {
pname = "base58";
version = "1.0.0";
src = fetchFromGitHub {
owner = "keis";
repo = "base58";
rev = "v${version}";
sha256 = "0f8isdpvbgw0sqn9bj7hk47y8akpvdl8sn6rkszla0xb92ywj0f6";
};
buildInputs = [ pytest pyhamcrest ];
checkPhase = ''
pytest
'';
meta = with stdenv.lib; {
description = "Base58 and Base58Check implementation";
homepage = https://github.com/keis/base58;
license = licenses.mit;
maintainers = with maintainers; [ nyanloutre ];
};
}

View file

@ -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 ];
};
}

View file

@ -1006,6 +1006,8 @@ in {
inherit (pkgs) gcc wirelesstools;
};
base58 = callPackage ../development/python-modules/base58 {};
batinfo = callPackage ../development/python-modules/batinfo {};
bcdoc = callPackage ../development/python-modules/bcdoc {};
@ -1119,6 +1121,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