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