python3Packages.python-binance: enable tests
This commit is contained in:
parent
0c6717db1d
commit
2d2faf3755
@ -1,20 +1,27 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib
|
||||||
, pytest, requests-mock, tox
|
|
||||||
, aiohttp
|
, aiohttp
|
||||||
|
, buildPythonPackage
|
||||||
, dateparser
|
, dateparser
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, requests
|
, requests
|
||||||
|
, requests-mock
|
||||||
, six
|
, six
|
||||||
, ujson
|
, ujson
|
||||||
, websockets
|
, websockets
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "1.0.10";
|
|
||||||
pname = "python-binance";
|
pname = "python-binance";
|
||||||
|
version = "1.0.10";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "sammchardy";
|
||||||
sha256 = "sha256-5U/xMJ0iPij3Y+6SKuKQHspSiktxJVrDQzHPoJCM4H8=";
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "09pq2blvky1ah4k8yc6zkp2g5nkn3awc52ad3lxvj6m33akfzxiv";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -27,16 +34,22 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest
|
pytestCheckHook
|
||||||
requests-mock
|
requests-mock
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = false; # Tries to test multiple interpreters with tox
|
disabledTestPaths = [
|
||||||
|
# Tests require network access
|
||||||
|
"tests/test_api_request.py"
|
||||||
|
"tests/test_historical_klines.py"
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
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