summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-binance/default.nix
blob: 9ed165f93b11f1ad6e7531ead1b7886dcd35e9c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, buildPythonPackage, fetchPypi
, pytest, requests-mock, tox
, autobahn, certifi, chardet, cryptography, dateparser, pyopenssl, requests, service-identity, twisted }:

buildPythonPackage rec {
  version = "0.7.1";
  pname = "python-binance";

  src = fetchPypi {
    inherit pname version;
    sha256 = "9ce406da68bfbc209ae6852d1b8a2812708d04502f82a61b0c9ca41356cc6ab7";
  };

  doCheck = false;  # Tries to test multiple interpreters with tox
  checkInputs = [ pytest requests-mock tox ];

  propagatedBuildInputs = [ autobahn certifi chardet cryptography dateparser pyopenssl requests service-identity twisted ];

  meta = {
    description = "Binance Exchange API python implementation for automated trading";
    homepage = https://github.com/sammchardy/python-binance;
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.bhipple ];
  };
}