mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 01:15:51 +00:00
265b82fb72
Diff: https://github.com/Bluetooth-Devices/aiooui/compare/refs/tags/v0.1.6...v0.1.7 Changelog: https://github.com/Bluetooth-Devices/aiooui/blob/0.1.7/CHANGELOG.md
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiooui";
|
|
version = "0.1.7";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Bluetooth-Devices";
|
|
repo = "aiooui";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-vnO3Lh+d/8mES2i4jKTH4RviURUFqb3Vj6u5sxUGf1o=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|