@@ -1,25 +1,55 @@
1−{ lib, buildPythonPackage, fetchPypi
2−, pytest, requests-mock, tox
3−, autobahn, certifi, chardet, cryptography, dateparser, pyopenssl, requests, service-identity, twisted, ujson }:
1+{ lib
2+, aiohttp
3+, buildPythonPackage
4+, dateparser
5+, fetchFromGitHub
6+, pytestCheckHook
7+, pythonOlder
8+, requests
9+, requests-mock
10+, six
11+, ujson
12+, websockets
13+}:
414
515buildPythonPackage rec {
6− version = "0.7.9";
716 pname = "python-binance";
17+ version = "1.0.10";
18+ disabled = pythonOlder "3.6";
819
9− src = fetchPypi {
10− inherit pname version;
11− sha256 = "476459d91f6cfe0a37ccac38911643ea6cca632499ad8682e0957a075f73d239";
20+ src = fetchFromGitHub {
21+ owner = "sammchardy";
22+ repo = pname;
23+ rev = "v${version}";
24+ sha256 = "09pq2blvky1ah4k8yc6zkp2g5nkn3awc52ad3lxvj6m33akfzxiv";
1225 };
1326
14− doCheck = false; # Tries to test multiple interpreters with tox
15− checkInputs = [ pytest requests-mock tox ];
27+ propagatedBuildInputs = [
28+ aiohttp
29+ dateparser
30+ requests
31+ six
32+ ujson
33+ websockets
34+ ];
1635
17− propagatedBuildInputs = [ autobahn certifi chardet cryptography dateparser pyopenssl requests service-identity twisted ujson ];
36+ checkInputs = [
37+ pytestCheckHook
38+ requests-mock
39+ ];
1840
19− meta = {
41+ disabledTestPaths = [
42+ # Tests require network access
43+ "tests/test_api_request.py"
44+ "tests/test_historical_klines.py"
45+ ];
46+
47+ pythonImportsCheck = [ "binance" ];
48+
49+ meta = with lib; {
2050 description = "Binance Exchange API python implementation for automated trading";
2151 homepage = "https://github.com/sammchardy/python-binance";
22− license = lib.licenses.mit;
23− maintainers = [ lib.maintainers.bhipple ];
52+ license = licenses.mit;
53+ maintainers = with maintainers; [ bhipple ];
2454 };
2555}