python3Packages.losant-rest: init at 1.15.1
This commit is contained in:
parent
a1b519b496
commit
cc78583096
2 changed files with 49 additions and 0 deletions
47
pkgs/development/python-modules/losant-rest/default.nix
Normal file
47
pkgs/development/python-modules/losant-rest/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue