1{ 2 lib, 3 buildPythonPackage, 4 fetchurl, 5}: 6 7buildPythonPackage rec { 8 pname = "pan-python"; 9 version = "0.25.0"; 10 format = "wheel"; 11 12 # fetchPypi doesn't appear to work, possibly because the uploaded archives on PyPI 13 # are named (notice '_' vs. '-'): 14 # - pan-python-0.25.0.tar.gz 15 # - pan_python-0.25.0-py3-none-any.whl 16 src = fetchurl { 17 url = "https://files.pythonhosted.org/packages/68/b0/0af75e586869bc5eee67e75472771e820189cbedbdde619353191a2828b7/pan_python-0.25.0-py3-none-any.whl"; 18 hash = "sha256-IWqXsFORXzo8n+J39ZaqAK1vD1uIxy3idtt1+Sq5x+0="; 19 }; 20 21 pythonImportsCheck = [ "pan" ]; 22 23 meta = { 24 description = "Python package for Palo Alto Networks Next-Generation Firewalls, WildFire and AutoFocus"; 25 homepage = "https://github.com/kevinsteves/pan-python"; 26 changelog = "https://github.com/kevinsteves/pan-python/releases/tag/v${version}"; 27 license = lib.licenses.isc; 28 maintainers = with lib.maintainers; [ jherland ]; 29 }; 30}