mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
Merge pull request #42619 from nyanloutre/pythonPackages.block-io
pythonPackages.block-io: init at 1.1.8
This commit is contained in:
commit
343ac4d2fc
25
pkgs/development/python-modules/base58/default.nix
Normal file
25
pkgs/development/python-modules/base58/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
30
pkgs/development/python-modules/block-io/default.nix
Normal file
30
pkgs/development/python-modules/block-io/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 {};
|
||||
@ -1120,6 +1122,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
|
||||
boost = toPythonModule (pkgs.boost.override {
|
||||
|
Loading…
Reference in New Issue
Block a user