1{ lib
2, buildPythonPackage
3, fetchPypi
4, requests
5, pythonOlder
6, typing-extensions
7}:
8
9buildPythonPackage rec {
10 pname = "stripe";
11 version = "6.5.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-9fTHare5AfJjHvd3QdBpMg8zKMHjGRjax+20qgSssP0=";
19 };
20
21 propagatedBuildInputs = [
22 requests
23 typing-extensions
24 ];
25
26 # Tests require network connectivity and there's no easy way to disable them
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "stripe"
31 ];
32
33 meta = with lib; {
34 description = "Stripe Python bindings";
35 homepage = "https://github.com/stripe/stripe-python";
36 changelog = "https://github.com/stripe/stripe-python/blob/v${version}/CHANGELOG.md";
37 license = licenses.mit;
38 maintainers = with maintainers; [ ];
39 };
40}