nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 49 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 marshmallow, 6 requests, 7 requests-toolbelt, 8 setuptools, 9 urllib3, 10}: 11 12buildPythonPackage rec { 13 pname = "netapp-ontap"; 14 version = "9.17.1.0"; 15 pyproject = true; 16 17 src = fetchPypi { 18 pname = "netapp_ontap"; 19 inherit version; 20 hash = "sha256-bzDGsKCEH3oszuz4OKnOg7WTMQTnJAGh7POmGhRCyzc="; 21 }; 22 23 postPatch = '' 24 substituteInPlace setup.py \ 25 --replace-fail 'marshmallow>=3.21.3,<4.0.0' 'marshmallow>=3.21.3' 26 ''; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 marshmallow 32 requests 33 requests-toolbelt 34 urllib3 35 ]; 36 37 # No tests in sdist and no other download available 38 doCheck = false; 39 40 pythonImportsCheck = [ "netapp_ontap" ]; 41 42 meta = { 43 description = "Library for working with ONTAP's REST APIs simply in Python"; 44 homepage = "https://library.netapp.com/ecmdocs/ECMLP3331665/html/index.html"; 45 license = lib.licenses.bsd3; 46 maintainers = with lib.maintainers; [ SuperSandro2000 ]; 47 mainProgram = "ontap-cli"; 48 }; 49}