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}: 14 15buildPythonPackage rec { 16 pname = "python-binance"; 17 version = "1.0.16"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchFromGitHub { 23 owner = "sammchardy"; 24 repo = pname; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-2v3qeykjQR/CUOC6F0Xomm49Q+wrYJS8vmL3+u6ew0M="; 27 }; 28 29 propagatedBuildInputs = [ 30 aiohttp 31 dateparser 32 requests 33 six 34 ujson 35 websockets 36 ]; 37 38 checkInputs = [ 39 pytestCheckHook 40 requests-mock 41 ]; 42 43 disabledTestPaths = [ 44 # Tests require network access 45 "tests/test_api_request.py" 46 "tests/test_historical_klines.py" 47 ]; 48 49 pythonImportsCheck = [ 50 "binance" 51 ]; 52 53 meta = with lib; { 54 description = "Binance Exchange API python implementation for automated trading"; 55 homepage = "https://github.com/sammchardy/python-binance"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ bhipple ]; 58 }; 59}