depot/third_party/nixpkgs/pkgs/development/python-modules/softlayer/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

43 lines
834 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, ptable
, click
, requests
, prompt-toolkit
, pygments
, urllib3
, pytest
, pytest-cov
, mock
, sphinx
, testtools
}:
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
'';
src = fetchFromGitHub {
owner = "softlayer";
repo = pname;
rev = "v${version}";
sha256 = "10kzi7kvvifr21a46q2xqsibs0bx5ys22nfym0bg605ka37vcz88";
};
meta = with lib; {
description = "A set of Python libraries that assist in calling the SoftLayer API.";
homepage = "https://github.com/softlayer/softlayer-python";
license = licenses.mit;
};
}