2020-11-04 11:43:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry
|
|
|
|
, aiohttp
|
|
|
|
, numpy
|
|
|
|
, pysmb
|
|
|
|
, aresponses
|
|
|
|
, asynctest
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2018-05-22 02:11:58 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyairvisual";
|
2020-11-04 11:43:05 +00:00
|
|
|
version = "5.0.4";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-05-22 02:11:58 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
|
|
|
repo = pname;
|
2020-11-04 11:43:05 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0z769xrb6w6bhqcq02sjryl1qyvk9dc1xfn06fc3mdqnrbr0xxj3";
|
2018-05-22 02:11:58 +01:00
|
|
|
};
|
|
|
|
|
2020-11-04 11:43:05 +00:00
|
|
|
nativeBuildInputs = [ poetry ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
numpy
|
|
|
|
pysmb
|
|
|
|
];
|
2018-05-22 02:11:58 +01:00
|
|
|
|
2020-11-04 11:43:05 +00:00
|
|
|
checkInputs = [
|
|
|
|
aresponses
|
|
|
|
asynctest
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-05-22 02:11:58 +01:00
|
|
|
|
2020-11-04 11:43:05 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"tests"
|
|
|
|
];
|
2018-05-22 02:11:58 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-11-04 11:43:05 +00:00
|
|
|
description = "A simple, clean, well-tested Python library for interacting with AirVisual©";
|
2018-05-22 02:11:58 +01:00
|
|
|
license = licenses.mit;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/bachya/pyairvisual";
|
2018-05-22 02:11:58 +01:00
|
|
|
};
|
|
|
|
}
|