1{ stdenv, buildPythonPackage, fetchPypi
2, unittest2, mock, requests }:
3
4buildPythonPackage rec {
5 pname = "stripe";
6 version = "1.62.1";
7 name = "${pname}-${version}";
8
9 # Tests require network connectivity and there's no easy way to disable
10 # them. ~ C.
11 doCheck = false;
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "7cc83b8d405a48d8a792640761519c64e373ad3514ea8bb4a9a5128f98b0b679";
16 };
17
18 buildInputs = [ unittest2 mock ];
19
20 propagatedBuildInputs = [ requests ];
21
22 meta = with stdenv.lib; {
23 description = "Stripe Python bindings";
24 homepage = https://github.com/stripe/stripe-python;
25 license = licenses.mit;
26 };
27}