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