2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aresponses
|
2021-08-12 14:41:47 +00:00
|
|
|
, backoff
|
2021-02-13 14:23:35 +00:00
|
|
|
, buildPythonPackage
|
2024-01-13 08:15:51 +00:00
|
|
|
, certifi
|
2021-02-13 14:23:35 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyopenuv";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2023.12.0";
|
|
|
|
pyproject = true;
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "pyopenuv";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-r+StbiU77/1dz41tCseleIWjiIvuvRveVgPNr3n4CEY=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2021-08-12 14:41:47 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
backoff
|
2024-01-13 08:15:51 +00:00
|
|
|
certifi
|
2021-08-12 14:41:47 +00:00
|
|
|
];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-13 14:23:35 +00:00
|
|
|
aresponses
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Ignore the examples as they are prefixed with test_
|
|
|
|
"examples/"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyopenuv"
|
|
|
|
];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API to retrieve data from openuv.io";
|
|
|
|
homepage = "https://github.com/bachya/pyopenuv";
|
2023-02-16 17:41:37 +00:00
|
|
|
changelog = "https://github.com/bachya/pyopenuv/releases/tag/${version}";
|
2021-02-13 14:23:35 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|