{ lib, buildPythonPackage, fetchPypi, isPy3k , unittest2, mock, requests, simplejson }: buildPythonPackage rec { pname = "stripe"; version = "2.10.1"; # Tests require network connectivity and there's no easy way to disable # them. ~ C. doCheck = false; src = fetchPypi { inherit pname version; sha256 = "12dslgxr06ymv1w9lzvlxp1zg0p6zg58l67pdb3v5v24c51rxrg7"; }; checkInputs = [ unittest2 mock ]; propagatedBuildInputs = [ requests ] ++ lib.optional (!isPy3k) simplejson; meta = with lib; { description = "Stripe Python bindings"; homepage = https://github.com/stripe/stripe-python; license = licenses.mit; }; }