3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #134674 from fabaff/fix-softlayer

This commit is contained in:
Sandro 2021-08-18 23:00:47 +02:00 committed by GitHub
commit a97598d2a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,43 +1,55 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, ptable
, click
, requests
, prompt-toolkit
, pygments
, urllib3
, pytest
, pytest-cov
, fetchFromGitHub
, mock
, prompt-toolkit
, ptable
, pygments
, pytestCheckHook
, pythonOlder
, requests
, sphinx
, testtools
, tkinter
, urllib3
}:
buildPythonPackage rec {
pname = "softlayer-python";
version = "5.8.4";
disabled = isPy27;
propagatedBuildInputs = [ ptable click requests prompt-toolkit pygments urllib3 ];
checkInputs = [ pytest pytest-cov mock sphinx testtools ];
checkPhase = ''
pytest
'';
pname = "softlayer";
version = "5.9.7";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "softlayer";
repo = pname;
owner = pname;
repo = "softlayer-python";
rev = "v${version}";
sha256 = "10kzi7kvvifr21a46q2xqsibs0bx5ys22nfym0bg605ka37vcz88";
sha256 = "0zwhykrpckx3ln4w6vlgp0nrkkr8343ni1w43hxznm55qmrllrpg";
};
propagatedBuildInputs = [
click
prompt-toolkit
ptable
pygments
requests
urllib3
];
checkInputs = [
mock
pytestCheckHook
sphinx
testtools
tkinter
];
pythonImportsCheck = [ "SoftLayer" ];
meta = with lib; {
description = "A set of Python libraries that assist in calling the SoftLayer API.";
description = "Python libraries that assist in calling the SoftLayer API";
homepage = "https://github.com/softlayer/softlayer-python";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}