added stuff from morph

This commit is contained in:
fleaz 2023-10-04 23:08:14 +02:00
commit cdf9817bc8
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083
9 changed files with 395 additions and 0 deletions

40
pytapo/default.nix Normal file
View file

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchPypi
# propagates
, pycryptodome
, requests
, urllib3
}:
buildPythonPackage rec {
pname = "pytapo";
version = "2.9.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-LW14uDQBqIVsigOzO0bNTpjY7Fk0IWAeDMPEuWM/nOo=";
};
propagatedBuildInputs = [
pycryptodome
requests
urllib3
];
pythonImportsCheck = [
"pytapo"
];
# Tests require actual hardware
doCheck = false;
meta = with lib; {
description = "Python library for communication with Tapo Cameras ";
homepage = "https://github.com/JurajNyiri/pytapo";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fleaz ];
};
}