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