87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
47 lines
882 B
Nix
47 lines
882 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, requests-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "losant-rest";
|
|
version = "1.17.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Losant";
|
|
repo = "losant-rest-python";
|
|
rev = "v${version}";
|
|
hash = "sha256-S4ypZ4yTncoyKi4INpXg0UtcD+CmKRwr3c/FuSoXVKs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|