fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
48 lines
868 B
Nix
48 lines
868 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cachetools,
|
|
fetchFromGitHub,
|
|
paho-mqtt,
|
|
pythonOlder,
|
|
pytz,
|
|
requests,
|
|
requests-oauthlib,
|
|
schedule,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysmappee";
|
|
version = "0.2.29";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "smappee";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-Ffi55FZsZUKDcS4qV46NpRK3VP6axzrL2BO+hYW7J9E=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cachetools
|
|
paho-mqtt
|
|
pytz
|
|
requests
|
|
requests-oauthlib
|
|
schedule
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pysmappee" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python Library for the Smappee dev API";
|
|
homepage = "https://github.com/smappee/pysmappee";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|