Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / packet-python / default.nix
blob8c88e6dc6ea7f3c430185b4f34f6fbb277d87084
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytestCheckHook
5 , pythonOlder
6 , requests
7 , requests-mock
8 }:
10 buildPythonPackage rec {
11   pname = "packet-python";
12   version = "1.44.3";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-WVfMELOoml7Hx78jy6TAwlFRLuSQu9dtsb6Khs6/cgI=";
20   };
22   postPatch = ''
23     substituteInPlace setup.py \
24       --replace "pytest-runner" ""
25   '';
27   propagatedBuildInputs = [
28     requests
29   ];
31   nativeCheckInputs = [
32     pytestCheckHook
33     requests-mock
34   ];
36   pythonImportsCheck = [
37     "packet"
38   ];
40   meta = with lib; {
41     description = "Python client for the Packet API";
42     homepage = "https://github.com/packethost/packet-python";
43     changelog = "https://github.com/packethost/packet-python/blob/v${version}/CHANGELOG.md";
44     license = licenses.lgpl3Only;
45     maintainers = with maintainers; [ dipinhora ];
46   };