mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
python311Packages.aiooui: init at 0.1.5
Async OUI lookups https://github.com/Bluetooth-Devices/aiooui
This commit is contained in:
parent
768bb87988
commit
f9dcabf012
53
pkgs/development/python-modules/aiooui/default.nix
Normal file
53
pkgs/development/python-modules/aiooui/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiooui";
|
||||
version = "0.1.5";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Bluetooth-Devices";
|
||||
repo = "aiooui";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-/RZ8nZatlfo3AJvg/4JgyAHtrnoj50uxbhqr+ToCTJ4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Remove requirements and build part for the OUI data
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "-v -Wdefault --cov=aiooui --cov-report=term-missing:skip-covered" "" \
|
||||
--replace-fail 'script = "build_oui.py"' "" \
|
||||
--replace-fail ", 'requests'" "" \
|
||||
--replace-fail '"setuptools>=65.4.1", ' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aiooui"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Async OUI lookups";
|
||||
homepage = "https://github.com/Bluetooth-Devices/aiooui";
|
||||
changelog = "https://github.com/Bluetooth-Devices/aiooui/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -331,6 +331,8 @@ self: super: with self; {
|
||||
|
||||
aiooss2 = callPackage ../development/python-modules/aiooss2 { };
|
||||
|
||||
aiooui = callPackage ../development/python-modules/aiooui { };
|
||||
|
||||
aiopegelonline = callPackage ../development/python-modules/aiopegelonline { };
|
||||
|
||||
aiopg = callPackage ../development/python-modules/aiopg { };
|
||||
|
Loading…
Reference in New Issue
Block a user