1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 requests,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "braintree";
12 version = "4.38.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "braintree";
17 repo = "braintree_python";
18 rev = version;
19 hash = "sha256-cAzqHMkEWaLXHbPUnkyFF5UD43rPk6txRSB2n9NJLTE=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ requests ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "braintree" ];
29
30 enabledTestPaths = [
31 "tests/"
32 "tests/fixtures"
33 "tests/unit"
34 "tests/integration/test_credentials_parser.py"
35 ];
36
37 meta = {
38 description = "Python library for integration with Braintree";
39 homepage = "https://github.com/braintree/braintree_python";
40 license = lib.licenses.mit;
41 maintainers = [ ];
42 };
43}