depot/third_party/nixpkgs/pkgs/development/python-modules/braintree/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

48 lines
854 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
];
checkInputs = [
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; [ ];
};
}