Files
nixpkgs/pkgs/development/python-modules/braintree/default.nix
2026-06-03 08:08:28 +00:00

45 lines
929 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "braintree";
version = "4.44.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "braintree";
repo = "braintree_python";
tag = finalAttrs.version;
hash = "sha256-Dsmfqy/thftJe3ovh/Y71gIz7w+mv/lDUhlsb1CsjtA=";
};
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 = [ ];
};
})