blob: 21a2857119763ba00b8c07b91bd80f1770e83036 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
requests-mock,
setuptools,
}:
buildPythonPackage rec {
pname = "losant-rest";
version = "1.19.6";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Losant";
repo = "losant-rest-python";
rev = "refs/tags/v${version}";
hash = "sha256-sbNR95FhcRhgHh/ulLC8lL6EHal0BBK3wP6i29VElmY=";
};
build-system = [ setuptools ];
dependencies = [ requests ];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
pytestFlagsArray = [ "tests/platformrest_tests.py" ];
pythonImportsCheck = [ "platformrest" ];
meta = with lib; {
description = "Python module for consuming the Losant IoT Platform API";
homepage = "https://github.com/Losant/losant-rest-python";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|