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.3";
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-WVfMELOoml7Hx78jy6TAwlFRLuSQu9dtsb6Khs6/cgI=";
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}