Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 886 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, ptable 6, click 7, requests 8, prompt_toolkit 9, pygments 10, urllib3 11, pytest 12, pytestcov 13, mock 14, sphinx 15, testtools 16}: 17 18buildPythonPackage rec { 19 pname = "softlayer-python"; 20 version = "5.8.4"; 21 disabled = isPy27; 22 23 propagatedBuildInputs = [ ptable click requests prompt_toolkit pygments urllib3 ]; 24 25 checkInputs = [ pytest pytestcov mock sphinx testtools ptable click requests prompt_toolkit pygments urllib3 ]; 26 27 checkPhase = '' 28 pytest 29 ''; 30 31 src = fetchFromGitHub { 32 owner = "softlayer"; 33 repo = pname; 34 rev = "v${version}"; 35 sha256 = "10kzi7kvvifr21a46q2xqsibs0bx5ys22nfym0bg605ka37vcz88"; 36 }; 37 38 meta = with lib; { 39 description = "A set of Python libraries that assist in calling the SoftLayer API."; 40 homepage = "https://github.com/softlayer/softlayer-python"; 41 license = licenses.mit; 42 }; 43}