Merge pull request #123073 from fabaff/bump-python-binance
python3Packages.python-binance: 0.7.9 -> 1.0.10
This commit is contained in:
commit
88158c7e40
@ -1,25 +1,55 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib
|
||||||
, pytest, requests-mock, tox
|
, aiohttp
|
||||||
, autobahn, certifi, chardet, cryptography, dateparser, pyopenssl, requests, service-identity, twisted, ujson }:
|
, buildPythonPackage
|
||||||
|
, dateparser
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
|
, requests-mock
|
||||||
|
, six
|
||||||
|
, ujson
|
||||||
|
, websockets
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "0.7.9";
|
|
||||||
pname = "python-binance";
|
pname = "python-binance";
|
||||||
|
version = "1.0.10";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "sammchardy";
|
||||||
sha256 = "476459d91f6cfe0a37ccac38911643ea6cca632499ad8682e0957a075f73d239";
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "09pq2blvky1ah4k8yc6zkp2g5nkn3awc52ad3lxvj6m33akfzxiv";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false; # Tries to test multiple interpreters with tox
|
propagatedBuildInputs = [
|
||||||
checkInputs = [ pytest requests-mock tox ];
|
aiohttp
|
||||||
|
dateparser
|
||||||
|
requests
|
||||||
|
six
|
||||||
|
ujson
|
||||||
|
websockets
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ autobahn certifi chardet cryptography dateparser pyopenssl requests service-identity twisted ujson ];
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
requests-mock
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
disabledTestPaths = [
|
||||||
|
# Tests require network access
|
||||||
|
"tests/test_api_request.py"
|
||||||
|
"tests/test_historical_klines.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "binance" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "Binance Exchange API python implementation for automated trading";
|
description = "Binance Exchange API python implementation for automated trading";
|
||||||
homepage = "https://github.com/sammchardy/python-binance";
|
homepage = "https://github.com/sammchardy/python-binance";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ lib.maintainers.bhipple ];
|
maintainers = with maintainers; [ bhipple ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user