summary refs log tree commit diff
path: root/pkgs/development/python-modules/stripe/default.nix
blob: 7aa955e99e2568bbc84a43f7ecd20a7a28a8350a (plain) (blame)
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, requests, pytest, pytest-cov, pytest-mock, pytest-xdist }:

buildPythonPackage rec {
  pname = "stripe";
  version = "2.58.0";

  # Tests require network connectivity and there's no easy way to disable
  # them. ~ C.
  doCheck = false;

  src = fetchPypi {
    inherit pname version;
    sha256 = "34829b528e652ffc919d40eff2ba78021149818bab76e33c07801382921cf6d5";
  };

  propagatedBuildInputs = [ requests ];

  checkInputs = [ pytest pytest-cov pytest-mock pytest-xdist ];

  meta = with lib; {
    description = "Stripe Python bindings";
    homepage = "https://github.com/stripe/stripe-python";
    license = licenses.mit;
  };
}