bba55970ba
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
42 lines
807 B
Nix
42 lines
807 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cachetools
|
|
, paho-mqtt
|
|
, pytz
|
|
, requests
|
|
, requests_oauthlib
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysmappee";
|
|
version = "0.2.18";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "smappee";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-DnRtKr8aGZ6rcN/wTpcFNaI+EJm07nObfWyBpLkQF38=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cachetools
|
|
paho-mqtt
|
|
pytz
|
|
requests
|
|
requests_oauthlib
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|