1{ stdenv, buildPythonPackage, fetchPypi 2, unittest2, mock, requests }: 3 4buildPythonPackage rec { 5 pname = "stripe"; 6 version = "1.77.2"; 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 = "3bcd55108dd2c0e853a91147ee843bc375f35767e64d0f7680e5bd82ddb7fbf1"; 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}