Files
nixpkgs/pkgs/development/python-modules/braintree/default.nix
Conor bbde42c80f python3Packages.braintree: 4.41.0 -> 4.43.0
(cherry picked from commit fab38f96a8)
2026-05-25 01:50:20 +00:00

45 lines
929 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "braintree";
version = "4.43.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "braintree";
repo = "braintree_python";
tag = finalAttrs.version;
hash = "sha256-4qLi6MplXaIT8+Us3Yb9fTph74XntagBNzyS//4K5Fk=";
};
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 = [ ];
};
})