evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / losant-rest / default.nix
blob067d8b06c969e476673d46cf20c7fd4bb6d7d604
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   requests,
8   requests-mock,
9   setuptools,
12 buildPythonPackage rec {
13   pname = "losant-rest";
14   version = "1.20.1";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "Losant";
21     repo = "losant-rest-python";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-1CxcA9/FvKP3P0Q02by0hBHQTAcbfLCp3AualHhZyvY=";
24   };
26   build-system = [ setuptools ];
28   dependencies = [ requests ];
30   nativeCheckInputs = [
31     pytestCheckHook
32     requests-mock
33   ];
35   pytestFlagsArray = [ "tests/platformrest_tests.py" ];
37   pythonImportsCheck = [ "platformrest" ];
39   meta = with lib; {
40     description = "Python module for consuming the Losant IoT Platform API";
41     homepage = "https://github.com/Losant/losant-rest-python";
42     license = licenses.mit;
43     maintainers = with maintainers; [ fab ];
44   };