forked from mirrors/nixpkgs
Merge pull request #153824 from fabaff/fix-block-io
python3Packages.block-io: update inputs
This commit is contained in:
commit
0578da5ed6
36
pkgs/development/python-modules/base58check/default.nix
Normal file
36
pkgs/development/python-modules/base58check/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "base58check";
|
||||
version = "1.0.2";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "joeblackwaslike";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Tig6beLRDsXC//x4+t/z2BGaJQWzcP0J+QEKx3D0rhs=";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"base58check"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Implementation of the Base58Check encoding scheme";
|
||||
homepage = "https://github.com/joeblackwaslike/base58check";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, base58
|
||||
, buildPythonPackage
|
||||
, ecdsa
|
||||
, fetchPypi
|
||||
, sympy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bitcoin-utils-fork-minimal";
|
||||
version = "0.4.11.4";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-n3tEQkl6KBAno4LY67lZme3TIvsm35VA2yyfWYuIE1c=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
base58
|
||||
ecdsa
|
||||
sympy
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "sympy==1.3" "sympy>=1.3" \
|
||||
--replace "base58==2.1.0" "base58>=2.1.0" \
|
||||
--replace "ecdsa==0.13.3" "ecdsa>=0.13.3"
|
||||
'';
|
||||
|
||||
# Project doesn't ship tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"bitcoinutils"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Bitcoin utility functions";
|
||||
homepage = "https://github.com/doersf/python-bitcoin-utils";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
45
pkgs/development/python-modules/bitcoinrpc/default.nix
Normal file
45
pkgs/development/python-modules/bitcoinrpc/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, orjson
|
||||
, httpx
|
||||
, typing-extensions
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bitcoinrpc";
|
||||
version = "0.5.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bibajz";
|
||||
repo = "bitcoin-python-async-rpc";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-uxkSz99X9ior7l825PaXGIC5XJzO/Opv0vTyY1ixvxU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
orjson
|
||||
httpx
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"bitcoinrpc"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Bitcoin JSON-RPC client";
|
||||
homepage = "https://github.com/bibajz/bitcoin-python-async-rpc";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -1,8 +1,20 @@
|
|||
{ lib, fetchPypi, buildPythonPackage, base58, ecdsa, pycryptodome, requests, six, setuptools }:
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, bitcoin-utils-fork-minimal
|
||||
, buildPythonPackage
|
||||
, base58
|
||||
, pycryptodome
|
||||
, requests
|
||||
, setuptools
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "block-io";
|
||||
version = "2.0.5";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
@ -11,24 +23,24 @@ buildPythonPackage rec {
|
|||
|
||||
propagatedBuildInputs = [
|
||||
base58
|
||||
ecdsa
|
||||
bitcoin-utils-fork-minimal
|
||||
pycryptodome
|
||||
requests
|
||||
six
|
||||
setuptools
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "ecdsa==0.15" "ecdsa>=0.15" \
|
||||
--replace "base58==1.0.3" "base58>=1.0.3"
|
||||
--replace "base58==2.1.0" "base58>=2.1.0"
|
||||
'';
|
||||
|
||||
# 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" ];
|
||||
pythonImportsCheck = [
|
||||
"block_io"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io";
|
||||
|
|
|
@ -1106,6 +1106,8 @@ in {
|
|||
|
||||
base58 = callPackage ../development/python-modules/base58 { };
|
||||
|
||||
base58check = callPackage ../development/python-modules/base58check { };
|
||||
|
||||
baseline = callPackage ../development/python-modules/baseline { };
|
||||
|
||||
baselines = callPackage ../development/python-modules/baselines { };
|
||||
|
@ -1198,6 +1200,10 @@ in {
|
|||
|
||||
bitcoin-price-api = callPackage ../development/python-modules/bitcoin-price-api { };
|
||||
|
||||
bitcoin-utils-fork-minimal = callPackage ../development/python-modules/bitcoin-utils-fork-minimal { };
|
||||
|
||||
bitcoinrpc = callPackage ../development/python-modules/bitcoinrpc { };
|
||||
|
||||
bitlist = callPackage ../development/python-modules/bitlist { };
|
||||
|
||||
bitmath = callPackage ../development/python-modules/bitmath { };
|
||||
|
|
Loading…
Reference in a new issue