3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/packet-python/default.nix
2020-06-11 10:00:17 +02:00

39 lines
780 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, requests
, python
# For tests/setup.py
, pytest
, pytestrunner
, requests-mock
}:
buildPythonPackage rec {
pname = "packet-python";
version = "1.42.0";
src = fetchPypi {
inherit pname version;
sha256 = "c3342085b2b96591b9d214d10fe39d85e1a2487c5b0883a90ff0bf6123086f07";
};
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ requests ];
checkInputs = [
pytest
pytestrunner
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 ];
};
}