1{
2 lib,
3 buildPythonPackage,
4 cliche,
5 fetchPypi,
6 marshmallow,
7 pythonOlder,
8 recline,
9 requests,
10 requests-toolbelt,
11 setuptools,
12 urllib3,
13}:
14
15buildPythonPackage rec {
16 pname = "netapp-ontap";
17 version = "9.15.1.1";
18 pyproject = true;
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 pname = "netapp_ontap";
24 inherit version;
25 hash = "sha256-rzME9JdaaXW1JOtfcjb5mlwSl4dy7lofnKOB6X6kWuM=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 marshmallow
32 requests
33 requests-toolbelt
34 urllib3
35 # required for cli
36 cliche
37 recline
38 ];
39
40 # No tests in sdist and no other download available
41 doCheck = false;
42
43 pythonImportsCheck = [ "netapp_ontap" ];
44
45 meta = with lib; {
46 description = "Library for working with ONTAP's REST APIs simply in Python";
47 homepage = "https://devnet.netapp.com/restapi.php";
48 license = licenses.bsd3;
49 maintainers = with maintainers; [ SuperSandro2000 ];
50 mainProgram = "ontap-cli";
51 };
52}