depot/third_party/nixpkgs/pkgs/development/python-modules/packet-python/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

38 lines
774 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;
hash = "sha256-WVfMELOoml7Hx78jy6TAwlFRLuSQu9dtsb6Khs6/cgI=";
};
nativeBuildInputs = [ pytest-runner ];
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
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 ];
};
}