python3Packages.losant-rest: init at 1.15.1

This commit is contained in:
Fabian Affolter 2021-12-20 17:42:39 +01:00
parent a1b519b496
commit cc78583096
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
}:
buildPythonPackage rec {
pname = "losant-rest";
version = "1.15.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Losant";
repo = "losant-rest-python";
rev = "v${version}";
sha256 = "sha256-j8Vzr83pvl/AnXfA+nl5uRXf+y6ndKmQHM3bl306wFM=";
};
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 ];
};
}

View file

@ -4619,6 +4619,8 @@ in {
loo-py = callPackage ../development/python-modules/loo-py { };
losant-rest = callPackage ../development/python-modules/losant-rest { };
lsassy = callPackage ../development/python-modules/lsassy { };
luddite = callPackage ../development/python-modules/luddite { };