2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
hatchling,
|
|
|
|
|
|
|
|
# propagated modules
|
|
|
|
requests,
|
|
|
|
python-dateutil,
|
|
|
|
pycognito,
|
|
|
|
typing-extensions,
|
2024-02-07 01:22:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyemvue";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.18.6";
|
2024-02-07 01:22:34 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-FQ34pKRK1HDLoupMDfVaNxAhn1HbZHYi6se4ewlUWGA=";
|
2024-02-07 01:22:34 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ hatchling ];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
python-dateutil
|
|
|
|
pycognito
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyemvue" ];
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/magico13/PyEmVue/releases/tag/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python library for reading data from the Emporia Vue energy monitoring system";
|
2024-02-07 01:22:34 +00:00
|
|
|
homepage = "https://github.com/magico13/PyEmVue";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ presto8 ];
|
|
|
|
};
|
|
|
|
}
|