python3Packages.globus-sdk: enable tests, add pythonImportsCheck
This commit is contained in:
parent
31bf82ecf1
commit
f7a8d301f7
1 changed files with 18 additions and 16 deletions
|
@ -1,35 +1,37 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, flake8
|
, fetchFromGitHub
|
||||||
, nose2
|
|
||||||
, mock
|
|
||||||
, requests
|
, requests
|
||||||
, pyjwt
|
, pyjwt
|
||||||
, fetchPypi
|
, pytestCheckHook
|
||||||
|
, responses
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "globus-sdk";
|
pname = "globus-sdk";
|
||||||
version = "2.0.1";
|
version = "2.0.1";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "globus";
|
||||||
sha256 = "94225982da7596f5bc8cd3dc30a4746014bf1f501cc8b23fe4dfd230114ae7e6";
|
repo = "globus-sdk-python";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1kqnr50iwcq9nx40lblbqzf327cdcbkrir6vh70067hk33rq0gm9";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkPhase = ''
|
propagatedBuildInputs = [
|
||||||
py.test tests
|
requests
|
||||||
'';
|
pyjwt
|
||||||
|
];
|
||||||
|
|
||||||
# No tests in archive
|
checkInputs = [
|
||||||
doCheck = false;
|
pytestCheckHook
|
||||||
|
responses
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ flake8 nose2 mock ];
|
pythonImportsCheck = [ "globus_sdk" ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ requests pyjwt ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A convenient Pythonic interface to Globus REST APIs, including the Transfer API and the Globus Auth API.";
|
description = "A convenient Pythonic interface to Globus REST APIs, including the Transfer API and the Globus Auth API";
|
||||||
homepage = "https://github.com/globus/globus-sdk-python";
|
homepage = "https://github.com/globus/globus-sdk-python";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ ixxie ];
|
maintainers = with maintainers; [ ixxie ];
|
||||||
|
|
Loading…
Reference in a new issue