From 156daca04b87d8089042a6efcb7294659c5b0e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 13 Jun 2023 15:48:36 +0200 Subject: [PATCH 1/4] python310.pkgs.netapp-lib: init at 2021.6.25 --- .../python-modules/netapp-lib/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/netapp-lib/default.nix diff --git a/pkgs/development/python-modules/netapp-lib/default.nix b/pkgs/development/python-modules/netapp-lib/default.nix new file mode 100644 index 000000000000..b84ff5613ecc --- /dev/null +++ b/pkgs/development/python-modules/netapp-lib/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b9051f34031d..95ddb8b3fa7e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6680,6 +6680,8 @@ self: super: with self; { netaddr = callPackage ../development/python-modules/netaddr { }; + netapp-lib = callPackage ../development/python-modules/netapp-lib { }; + netcdf4 = callPackage ../development/python-modules/netcdf4 { }; netdata = callPackage ../development/python-modules/netdata { }; From fab29d1717927b6cccb718f5fc29424f0e1c880e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 13 Jun 2023 16:10:55 +0200 Subject: [PATCH 2/4] python310.pkgs.cliche: init at 0.10.108 --- .../python-modules/cliche/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/cliche/default.nix diff --git a/pkgs/development/python-modules/cliche/default.nix b/pkgs/development/python-modules/cliche/default.nix new file mode 100644 index 000000000000..0630381ac541 --- /dev/null +++ b/pkgs/development/python-modules/cliche/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 95ddb8b3fa7e..6612080036a6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1873,6 +1873,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 { }; From fde17beb21ef54497eda04327f5cfd8ca4fa87c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 13 Jun 2023 16:11:10 +0200 Subject: [PATCH 3/4] python310.pkgs.recline: init at 2023.5 --- .../python-modules/recline/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/recline/default.nix diff --git a/pkgs/development/python-modules/recline/default.nix b/pkgs/development/python-modules/recline/default.nix new file mode 100644 index 000000000000..9bafa54880f5 --- /dev/null +++ b/pkgs/development/python-modules/recline/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6612080036a6..45954d1ed459 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10476,6 +10476,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; }); From 3d5e359d4e967f83d706c12f6990375af5aeb957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 13 Jun 2023 16:17:15 +0200 Subject: [PATCH 4/4] python310.pkgs.netapp-ontap: init at 9.12.1.0 --- .../python-modules/netapp-ontap/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/netapp-ontap/default.nix diff --git a/pkgs/development/python-modules/netapp-ontap/default.nix b/pkgs/development/python-modules/netapp-ontap/default.nix new file mode 100644 index 000000000000..cedb2fa064cb --- /dev/null +++ b/pkgs/development/python-modules/netapp-ontap/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 45954d1ed459..42dc95a31dce 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6684,6 +6684,8 @@ self: super: with self; { 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 { };