Merge pull request #160589 from fabaff/test-braintree
python3Packages.braintree: enable tests
This commit is contained in:
commit
11de313748
@ -1,22 +1,43 @@
|
|||||||
{ lib,
|
{ lib
|
||||||
fetchPypi,
|
, buildPythonPackage
|
||||||
requests,
|
, fetchFromGitHub
|
||||||
buildPythonPackage
|
, nose
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "braintree";
|
pname = "braintree";
|
||||||
version = "4.14.0";
|
version = "4.14.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
disabled = pythonOlder "3.7";
|
||||||
inherit pname version;
|
|
||||||
sha256 = "sha256-0gnlb5m6KQArdwaZoFF6dcvAL3iQJiZTgLVMQp/EoBE=";
|
src = fetchFromGitHub {
|
||||||
|
owner = pname;
|
||||||
|
repo = "braintree_python";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-qeqQX+qyy78sLe+46CA4D6VAxNHUVahS4LMYdGDzc2k=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ requests ];
|
propagatedBuildInputs = [
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
# pypi release does not include tests
|
checkInputs = [
|
||||||
doCheck = false;
|
nose
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"braintree"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# Don't test integrations
|
||||||
|
"tests/integration"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python library for integration with Braintree";
|
description = "Python library for integration with Braintree";
|
||||||
|
Loading…
Reference in New Issue
Block a user