Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / linode-api / default.nix
blob48d5a1e80802fbff2934a577b160931e7502d5d4
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , requests
6 , pytestCheckHook
7 , mock
8 }:
10 buildPythonPackage rec {
11   pname = "linode-api";
12   version = "5.0.0";
13   disabled = pythonOlder "3.6";
15   # Sources from Pypi exclude test fixtures
16   src = fetchFromGitHub {
17     owner = "linode";
18     repo = "python-linode-api";
19     rev = version;
20     sha256 = "0lqi15vks4fxbki1l7n1bfzygjy3w17d9wchjxvp22ijmas44yai";
21   };
23   propagatedBuildInputs = [ requests ];
25   checkInputs = [
26     mock
27     pytestCheckHook
28   ];
30   pythonImportsCheck = [ "linode_api4" ];
32   meta = with lib; {
33     description = "Python library for the Linode API v4";
34     homepage = "https://github.com/linode/python-linode-api";
35     license = licenses.bsd3;
36     maintainers = with maintainers; [ glenns ];
37   };