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