2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
requests,
|
|
|
|
simplejson,
|
|
|
|
fake-useragent,
|
|
|
|
pythonOlder,
|
2021-10-28 06:52:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyatome";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.1.2";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "pyAtome";
|
|
|
|
inherit version;
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-DGkgW6emh/esZa/alUjBbpLXlU4EVIPkysn9a0LgcJ4=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
simplejson
|
|
|
|
fake-useragent
|
|
|
|
];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
# No tests in PyPI tarballs
|
2021-10-28 06:52:43 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pyatome" ];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to get energy consumption data from Atome";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pyatome";
|
2021-10-28 06:52:43 +00:00
|
|
|
homepage = "https://github.com/baqs/pyAtome";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ uvnikita ];
|
|
|
|
};
|
|
|
|
}
|