2021-09-25 01:11:20 +02:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-10-18 09:28:11 +02:00
|
|
|
pname = "airthings-cloud";
|
2021-11-12 22:11:42 +01:00
|
|
|
version = "0.1.0";
|
2021-09-25 01:11:20 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Danielhiversen";
|
|
|
|
repo = "pyAirthings";
|
|
|
|
rev = version;
|
2021-11-12 22:11:42 +01:00
|
|
|
sha256 = "sha256-sqHNK6biSWso4uOYimzU7PkEn0uP5sHAaPGsS2vSMNY=";
|
2021-09-25 01:11:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-11-12 22:11:42 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"airthings"
|
|
|
|
];
|
2021-09-25 01:11:20 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for Airthings";
|
|
|
|
homepage = "https://github.com/Danielhiversen/pyAirthings";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|