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