Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 671 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k 2, unittest2, mock, requests, simplejson }: 3 4buildPythonPackage rec { 5 pname = "stripe"; 6 version = "2.21.0"; 7 8 # Tests require network connectivity and there's no easy way to disable 9 # them. ~ C. 10 doCheck = false; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "170f76f2502888debf02da580138c840497b9359876ca3838f4692f2f02c9110"; 15 }; 16 17 checkInputs = [ unittest2 mock ]; 18 19 propagatedBuildInputs = [ requests ] ++ lib.optional (!isPy3k) simplejson; 20 21 meta = with lib; { 22 description = "Stripe Python bindings"; 23 homepage = https://github.com/stripe/stripe-python; 24 license = licenses.mit; 25 }; 26}