Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / losant-rest / default.nix
blob3d14dbf313e0961b5dc991eeb84e556090045e41
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , requests
7 , requests-mock
8 }:
10 buildPythonPackage rec {
11   pname = "losant-rest";
12   version = "1.19.5";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "Losant";
19     repo = "losant-rest-python";
20     rev = "v${version}";
21     hash = "sha256-oYwbCpX2mD1RMk/0ymxaA8NF9kaJ+pGQdUKk3l5Jmrs=";
22   };
24   propagatedBuildInputs = [
25     requests
26   ];
28   nativeCheckInputs = [
29     pytestCheckHook
30     requests-mock
31   ];
33   pytestFlagsArray = [
34     "tests/losantrest_tests.py"
35   ];
37   pythonImportsCheck = [
38     "losantrest"
39   ];
41   meta = with lib; {
42     description = "Python module for consuming the Losant IoT Platform API";
43     homepage = "https://github.com/Losant/losant-rest-python";
44     license = licenses.mit;
45     maintainers = with maintainers; [ fab ];
46   };