889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
47 lines
878 B
Nix
47 lines
878 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, requests-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "losant-rest";
|
|
version = "1.16.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Losant";
|
|
repo = "losant-rest-python";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-s9WPr5sFSyPIDRgRYcD55iRLhaVIvkiDGg/m//6acFY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
requests-mock
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests/losantrest_tests.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"losantrest"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|