2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aresponses,
|
|
|
|
buildPythonPackage,
|
|
|
|
certifi,
|
|
|
|
fetchFromGitHub,
|
|
|
|
numpy,
|
|
|
|
poetry-core,
|
|
|
|
pygments,
|
|
|
|
pysmb,
|
|
|
|
pytest-aiohttp,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyairvisual";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2023.12.0";
|
|
|
|
pyproject = true;
|
2020-11-06 00:33:48 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "pyairvisual";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-uN31LeHYmg4V6Ln3EQp765nOsN5v56TxjYSS/g6TUCY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2023-08-22 20:05:09 +00:00
|
|
|
certifi
|
2020-11-06 00:33:48 +00:00
|
|
|
numpy
|
2023-08-22 20:05:09 +00:00
|
|
|
pygments
|
2020-11-06 00:33:48 +00:00
|
|
|
pysmb
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# this lets tests bind to localhost in sandbox mode on macOS
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-11-06 00:33:48 +00:00
|
|
|
aresponses
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2023-03-04 12:14:45 +00:00
|
|
|
pytestCheckHook
|
2020-11-06 00:33:48 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Ignore the examples directory as the files are prefixed with test_.
|
|
|
|
"examples/"
|
|
|
|
];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pyairvisual" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "Python library for interacting with AirVisual";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/bachya/pyairvisual";
|
2021-01-09 10:05:03 +00:00
|
|
|
changelog = "https://github.com/bachya/pyairvisual/releases/tag/${version}";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|