1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, pythonOlder 6, requests 7, requests-mock 8}: 9 10buildPythonPackage rec { 11 pname = "packet-python"; 12 version = "1.44.3"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-WVfMELOoml7Hx78jy6TAwlFRLuSQu9dtsb6Khs6/cgI="; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py \ 24 --replace "pytest-runner" "" 25 ''; 26 27 propagatedBuildInputs = [ 28 requests 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 requests-mock 34 ]; 35 36 pythonImportsCheck = [ 37 "packet" 38 ]; 39 40 meta = with lib; { 41 description = "Python client for the Packet API"; 42 homepage = "https://github.com/packethost/packet-python"; 43 changelog = "https://github.com/packethost/packet-python/blob/v${version}/CHANGELOG.md"; 44 license = licenses.lgpl3Only; 45 maintainers = with maintainers; [ dipinhora ]; 46 }; 47}