nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytest-asyncio, 7 pytest-cov-stub, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "aiooui"; 13 version = "0.1.9"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "Bluetooth-Devices"; 18 repo = "aiooui"; 19 tag = "v${version}"; 20 hash = "sha256-tY8/hb3BpxzKM/IB7anfmqGcXK6FmiuoJVxqpFW1Maw="; 21 }; 22 23 postPatch = '' 24 # Remove requirements and build part for the OUI data 25 substituteInPlace pyproject.toml \ 26 --replace-fail 'script = "build_oui.py"' "" \ 27 --replace-fail ", 'requests', 'aiohttp'" "" \ 28 --replace-fail '"setuptools>=65.4.1", ' "" 29 ''; 30 31 build-system = [ poetry-core ]; 32 33 nativeCheckInputs = [ 34 pytest-asyncio 35 pytest-cov-stub 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "aiooui" ]; 40 41 meta = { 42 description = "Async OUI lookups"; 43 homepage = "https://github.com/Bluetooth-Devices/aiooui"; 44 changelog = "https://github.com/Bluetooth-Devices/aiooui/blob/${src.tag}/CHANGELOG.md"; 45 license = lib.licenses.mit; 46 maintainers = with lib.maintainers; [ fab ]; 47 }; 48}