mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
43 lines
808 B
Nix
43 lines
808 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cachetools
|
|
, paho-mqtt
|
|
, pytz
|
|
, requests
|
|
, requests_oauthlib
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysmappee";
|
|
version = "0.2.17";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "smappee";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "00274fbclj5kmwxi2bfx4913r4l0y8qvkfcc9d7ryalvf8jq24k6";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|