Files
nixpkgs/pkgs/development/python-modules/braintree/default.nix
T
2025-12-17 08:39:10 +00:00

44 lines
849 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "braintree";
version = "4.41.0";
pyproject = true;
src = fetchFromGitHub {
owner = "braintree";
repo = "braintree_python";
rev = version;
hash = "sha256-5rTYRzlx/XueL6vF0/kM73bgN/QjvM55ZSLIWNI8YiQ=";
};
build-system = [ setuptools ];
dependencies = [ requests ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "braintree" ];
enabledTestPaths = [
"tests/"
"tests/fixtures"
"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 = [ ];
};
}