1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
marshmallow,
|
|
requests,
|
|
requests-toolbelt,
|
|
setuptools,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "netapp-ontap";
|
|
version = "9.17.1.0";
|
|
pyproject = true;
|
|
|
|
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";
|
|
};
|
|
}
|