02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
38 lines
770 B
Nix
38 lines
770 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, requests
|
|
, python
|
|
|
|
# For tests/setup.py
|
|
, pytest
|
|
, pytest-runner
|
|
, requests-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "packet-python";
|
|
version = "1.44.3";
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-WVfMELOoml7Hx78jy6TAwlFRLuSQu9dtsb6Khs6/cgI=";
|
|
};
|
|
nativeBuildInputs = [ pytest-runner ];
|
|
propagatedBuildInputs = [ requests ];
|
|
checkInputs = [
|
|
pytest
|
|
pytest-runner
|
|
requests-mock
|
|
];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} setup.py test
|
|
'';
|
|
|
|
meta = {
|
|
description = "A Python client for the Packet API.";
|
|
homepage = "https://github.com/packethost/packet-python";
|
|
license = lib.licenses.lgpl3;
|
|
maintainers = with lib.maintainers; [ dipinhora ];
|
|
};
|
|
}
|