1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, nose 5, pytestCheckHook 6, pythonOlder 7, requests 8}: 9 10buildPythonPackage rec { 11 pname = "braintree"; 12 version = "4.14.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = pname; 19 repo = "braintree_python"; 20 rev = version; 21 hash = "sha256-qeqQX+qyy78sLe+46CA4D6VAxNHUVahS4LMYdGDzc2k="; 22 }; 23 24 propagatedBuildInputs = [ 25 requests 26 ]; 27 28 checkInputs = [ 29 nose 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "braintree" 35 ]; 36 37 disabledTestPaths = [ 38 # Don't test integrations 39 "tests/integration" 40 ]; 41 42 meta = with lib; { 43 description = "Python library for integration with Braintree"; 44 homepage = "https://github.com/braintree/braintree_python"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ ]; 47 }; 48}