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 { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub
, isPy27
, ptable
, click , click
, requests , fetchFromGitHub
, prompt-toolkit
, pygments
, urllib3
, pytest
, pytest-cov
, mock , mock
, prompt-toolkit
, ptable
, pygments
, pytestCheckHook
, pythonOlder
, requests
, sphinx , sphinx
, testtools , testtools
, tkinter
, urllib3
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "softlayer-python"; pname = "softlayer";
version = "5.8.4"; version = "5.9.7";
disabled = isPy27; disabled = pythonOlder "3.5";
propagatedBuildInputs = [ ptable click requests prompt-toolkit pygments urllib3 ];
checkInputs = [ pytest pytest-cov mock sphinx testtools ];
checkPhase = ''
pytest
'';
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "softlayer"; owner = pname;
repo = pname; repo = "softlayer-python";
rev = "v${version}"; 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; { 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"; homepage = "https://github.com/softlayer/softlayer-python";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ];
}; };
} }