nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 38 lines 783 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5, python 6 7# For tests/setup.py 8, pytest 9, pytest-runner 10, requests-mock 11}: 12 13buildPythonPackage rec { 14 pname = "packet-python"; 15 version = "1.44.2"; 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "4ce0827bc41d5bf5558284c18048344343f7c4c6e280b64bbe53fb51ab454892"; 19 }; 20 nativeBuildInputs = [ pytest-runner ]; 21 propagatedBuildInputs = [ requests ]; 22 checkInputs = [ 23 pytest 24 pytest-runner 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}