Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5, python 6 7# For tests/setup.py 8, pytest 9, pytestrunner 10, requests-mock 11}: 12 13buildPythonPackage rec { 14 pname = "packet-python"; 15 version = "1.43.0"; 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "48fcc5ca6e7f3d84ef91016585d1894bb9deb3dae6591ffab90fdf05006c3e48"; 19 }; 20 nativeBuildInputs = [ pytestrunner ]; 21 propagatedBuildInputs = [ requests ]; 22 checkInputs = [ 23 pytest 24 pytestrunner 25 requests-mock 26 ]; 27 28 checkPhase = '' 29 ${python.interpreter} setup.py test 30 ''; 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}