Merge pull request #237568 from SuperSandro2000/python-netapp-ontap
python310.pkgs.netapp-ontap: init at 9.12.1.0
This commit is contained in:
commit
5ae4250b2f
5 changed files with 164 additions and 0 deletions
37
pkgs/development/python-modules/cliche/default.nix
Normal file
37
pkgs/development/python-modules/cliche/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, ipdb
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "cliche";
|
||||
version = "0.10.108";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kootenpv";
|
||||
repo = "cliche";
|
||||
rev = "80a9ae2e90f4493880b669d5db51f1d4038589df"; # no tags
|
||||
sha256 = "sha256-7/icSneLQzwdkRL/mS4RjsgnKa6YIVvGCmdS6pB6r5Y=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "ipdb == 0.13.9" "ipdb"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ ipdb ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "cliche" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Build a simple command-line interface from your functions :computer:";
|
||||
homepage = "https://github.com/kootenpv/cliche";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
36
pkgs/development/python-modules/netapp-lib/default.nix
Normal file
36
pkgs/development/python-modules/netapp-lib/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, lxml
|
||||
, six
|
||||
, xmltodict
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "netapp-lib";
|
||||
version = "2021.6.25";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-1g4FCSMyS8T6F/T8BOqak4h1nJis8g9jaOluA4FTNpA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
lxml
|
||||
six
|
||||
xmltodict
|
||||
];
|
||||
|
||||
# no tests in sdist and no other download available
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "netapp_lib" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "netapp-lib is required for Ansible deployments to interact with NetApp storage systems";
|
||||
homepage = "https://netapp.io/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
45
pkgs/development/python-modules/netapp-ontap/default.nix
Normal file
45
pkgs/development/python-modules/netapp-ontap/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, cliche
|
||||
, marshmallow
|
||||
, pytestCheckHook
|
||||
, recline
|
||||
, requests
|
||||
, requests-toolbelt
|
||||
, urllib3
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "netapp-ontap";
|
||||
version = "9.12.1.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "netapp_ontap";
|
||||
inherit version;
|
||||
sha256 = "sha256-eqFj2xYl4X1TB4Rxajpor5zgJdoISJk89KpARAHI/W0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
marshmallow
|
||||
requests
|
||||
requests-toolbelt
|
||||
urllib3
|
||||
# required for cli
|
||||
cliche
|
||||
recline
|
||||
];
|
||||
|
||||
# no tests in sdist and no other download available
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "netapp_ontap" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A library for working with ONTAP's REST APIs simply in Python";
|
||||
homepage = "https://devnet.netapp.com/restapi.php";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
38
pkgs/development/python-modules/recline/default.nix
Normal file
38
pkgs/development/python-modules/recline/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pudb
|
||||
, pytestCheckHook
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "recline";
|
||||
version = "2023.5";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "NetApp";
|
||||
repo = "recline";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-jsWOPkzhN4D+Q/lK5yWg1kTgFkmOEIQY8O7oAXq5Nak=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pudb
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "recline" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "This library helps you quickly implement an interactive command-based application";
|
||||
homepage = "https://github.com/NetApp/recline";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
|
@ -1889,6 +1889,8 @@ self: super: with self; {
|
|||
|
||||
class-doc = callPackage ../development/python-modules/class-doc { };
|
||||
|
||||
cliche = callPackage ../development/python-modules/cliche { };
|
||||
|
||||
click = callPackage ../development/python-modules/click { };
|
||||
|
||||
clickclick = callPackage ../development/python-modules/clickclick { };
|
||||
|
@ -6728,6 +6730,10 @@ self: super: with self; {
|
|||
|
||||
netaddr = callPackage ../development/python-modules/netaddr { };
|
||||
|
||||
netapp-lib = callPackage ../development/python-modules/netapp-lib { };
|
||||
|
||||
netapp-ontap = callPackage ../development/python-modules/netapp-ontap { };
|
||||
|
||||
netcdf4 = callPackage ../development/python-modules/netcdf4 { };
|
||||
|
||||
netdata = callPackage ../development/python-modules/netdata { };
|
||||
|
@ -10543,6 +10549,8 @@ self: super: with self; {
|
|||
|
||||
recipe-scrapers = callPackage ../development/python-modules/recipe-scrapers { };
|
||||
|
||||
recline = callPackage ../development/python-modules/recline { };
|
||||
|
||||
recoll = toPythonModule (pkgs.recoll.override {
|
||||
python3Packages = self;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue