1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5, python 6, fetchpatch 7}: 8 9buildPythonPackage rec { 10 pname = "packet-python"; 11 version = "1.37.1"; 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "316941d2473c0f42ac17ac89e9aa63a023bb96f35cf8eafe9e091ea424892778"; 15 }; 16 propagatedBuildInputs = [ requests ]; 17 18 checkPhase = '' 19 ${python.interpreter} -m unittest discover -s test 20 ''; 21 22 patches = [ 23 (fetchpatch { 24 url = https://github.com/packethost/packet-python/commit/361ad0c60d0bfce2a992eefd17e917f9dcf36400.patch; 25 sha256 = "1cmzyq0302y4cqmim6arnvn8n620qysq458g2w5aq4zj1vz1q9g1"; 26 }) 27 ]; 28 29 # Not all test files are included in archive 30 doCheck = false; 31 32 meta = { 33 description = "A Python client for the Packet API."; 34 homepage = "https://github.com/packethost/packet-python"; 35 license = lib.licenses.lgpl3; 36 maintainers = with lib.maintainers; [ dipinhora ]; 37 }; 38}