fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
45 lines
857 B
Nix
45 lines
857 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
nose,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "braintree";
|
|
version = "4.14.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = "braintree_python";
|
|
rev = version;
|
|
hash = "sha256-qeqQX+qyy78sLe+46CA4D6VAxNHUVahS4LMYdGDzc2k=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
nativeCheckInputs = [
|
|
nose
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "braintree" ];
|
|
|
|
disabledTestPaths = [
|
|
# Don't test integrations
|
|
"tests/integration"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for integration with Braintree";
|
|
homepage = "https://github.com/braintree/braintree_python";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|