2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
async-timeout,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
2021-10-07 14:46:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-10-17 09:34:42 +00:00
|
|
|
pname = "airthings-cloud";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.2.0";
|
2021-10-07 14:46:35 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Danielhiversen";
|
|
|
|
repo = "pyAirthings";
|
2024-01-13 08:15:51 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-HdH/z5xsumOXU0ZYOUc8LHpjKGkfp5e5yGER+Nm8xB4=";
|
2021-10-07 14:46:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "airthings" ];
|
2021-10-07 14:46:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for Airthings";
|
|
|
|
homepage = "https://github.com/Danielhiversen/pyAirthings";
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/Danielhiversen/pyAirthings/releases/tag/${version}";
|
2021-10-07 14:46:35 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|