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