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