aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/stripe/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/stripe/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/stripe/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/stripe/default.nix b/nixpkgs/pkgs/development/python-modules/stripe/default.nix
new file mode 100644
index 00000000000..68ed8dcf99f
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/stripe/default.nix
@@ -0,0 +1,25 @@
+{ lib, buildPythonPackage, fetchPypi, requests, pytest, pytestcov, pytest-mock, pytest_xdist }:
+
+buildPythonPackage rec {
+ pname = "stripe";
+ version = "2.35.1";
+
+ # Tests require network connectivity and there's no easy way to disable
+ # them. ~ C.
+ doCheck = false;
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "0rmzba8yig426anf8fxiacyvwchlsws746757sgvw748n8lrarbw";
+ };
+
+ propagatedBuildInputs = [ requests ];
+
+ checkInputs = [ pytest pytestcov pytest-mock pytest_xdist ];
+
+ meta = with lib; {
+ description = "Stripe Python bindings";
+ homepage = https://github.com/stripe/stripe-python;
+ license = licenses.mit;
+ };
+}