nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv
2, lib
3, buildPythonPackage
4, click
5, fetchFromGitHub
6, mock
7, prompt-toolkit
8, ptable
9, pygments
10, pytestCheckHook
11, pythonOlder
12, requests
13, sphinx
14, testtools
15, tkinter
16, urllib3
17}:
18
19buildPythonPackage rec {
20 pname = "softlayer";
21 version = "5.9.9";
22 disabled = pythonOlder "3.5";
23
24 src = fetchFromGitHub {
25 owner = pname;
26 repo = "softlayer-python";
27 rev = "v${version}";
28 sha256 = "sha256-LskPz5KXOi7olb3+DUP9uEFESQeo6ec/ZLx9B/w6Ni0=";
29 };
30
31 propagatedBuildInputs = [
32 click
33 prompt-toolkit
34 ptable
35 pygments
36 requests
37 urllib3
38 ];
39
40 checkInputs = [
41 mock
42 pytestCheckHook
43 sphinx
44 testtools
45 tkinter
46 ];
47
48 pythonImportsCheck = [ "SoftLayer" ];
49
50 meta = with lib; {
51 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
52 description = "Python libraries that assist in calling the SoftLayer API";
53 homepage = "https://github.com/softlayer/softlayer-python";
54 license = licenses.mit;
55 maintainers = with maintainers; [ ];
56 };
57}