python3Packages.braintree: enable tests

This commit is contained in:
Fabian Affolter 2022-02-18 10:33:53 +01:00
parent 5c14481fbd
commit e9aaf1074e

View file

@ -1,22 +1,43 @@
{ lib,
fetchPypi,
requests,
buildPythonPackage
{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "braintree";
version = "4.14.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-0gnlb5m6KQArdwaZoFF6dcvAL3iQJiZTgLVMQp/EoBE=";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = "braintree_python";
rev = version;
hash = "sha256-qeqQX+qyy78sLe+46CA4D6VAxNHUVahS4LMYdGDzc2k=";
};
propagatedBuildInputs = [ requests ];
propagatedBuildInputs = [
requests
];
# pypi release does not include tests
doCheck = false;
checkInputs = [
nose
pytestCheckHook
];
pythonImportsCheck = [
"braintree"
];
disabledTestPaths = [
# Don't test integrations
"tests/integration"
];
meta = with lib; {
description = "Python library for integration with Braintree";