mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
Merge pull request #151433 from fabaff/losant-rest
python3Packages.losant-rest: init at 1.15.1
This commit is contained in:
commit
25764f1379
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 ];
|
||||
};
|
||||
}
|
@ -4637,6 +4637,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 New Issue
Block a user