Files
nixpkgs/pkgs/development/python-modules/netapp-ontap/default.nix
T
2026-01-04 02:35:11 +01:00

53 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
marshmallow,
pythonOlder,
requests,
requests-toolbelt,
setuptools,
urllib3,
}:
buildPythonPackage rec {
pname = "netapp-ontap";
version = "9.17.1.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "netapp_ontap";
inherit version;
hash = "sha256-bzDGsKCEH3oszuz4OKnOg7WTMQTnJAGh7POmGhRCyzc=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail 'marshmallow>=3.21.3,<4.0.0' 'marshmallow>=3.21.3'
'';
build-system = [ setuptools ];
dependencies = [
marshmallow
requests
requests-toolbelt
urllib3
];
# No tests in sdist and no other download available
doCheck = false;
pythonImportsCheck = [ "netapp_ontap" ];
meta = {
description = "Library for working with ONTAP's REST APIs simply in Python";
homepage = "https://library.netapp.com/ecmdocs/ECMLP3331665/html/index.html";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
mainProgram = "ontap-cli";
};
}