472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
45 lines
921 B
Nix
45 lines
921 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
requests-mock,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "losant-rest";
|
|
version = "1.20.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Losant";
|
|
repo = "losant-rest-python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-1CxcA9/FvKP3P0Q02by0hBHQTAcbfLCp3AualHhZyvY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|