depot/third_party/nixpkgs/pkgs/development/python-modules/linode-api/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

38 lines
788 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
, pytestCheckHook
, mock
}:
buildPythonPackage rec {
pname = "linode-api";
version = "5.0.0";
disabled = pythonOlder "3.6";
# Sources from Pypi exclude test fixtures
src = fetchFromGitHub {
owner = "linode";
repo = "python-linode-api";
rev = version;
sha256 = "0lqi15vks4fxbki1l7n1bfzygjy3w17d9wchjxvp22ijmas44yai";
};
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "linode_api4" ];
meta = with lib; {
description = "Python library for the Linode API v4";
homepage = "https://github.com/linode/python-linode-api";
license = licenses.bsd3;
maintainers = with maintainers; [ glenns ];
};
}