Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pytestCheckHook 6, pythonOlder 7, setuptools 8}: 9 10buildPythonPackage rec { 11 pname = "bluetooth-data-tools"; 12 version = "0.4.0"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.9"; 16 17 src = fetchFromGitHub { 18 owner = "Bluetooth-Devices"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-Zu2tD5isiOKOn1/bNgVo1F2/CbFFj5wVp1CUO+6btBc="; 22 }; 23 24 nativeBuildInputs = [ 25 poetry-core 26 setuptools 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 postPatch = '' 34 substituteInPlace pyproject.toml \ 35 --replace " --cov=bluetooth_data_tools --cov-report=term-missing:skip-covered" "" 36 ''; 37 38 pythonImportsCheck = [ 39 "bluetooth_data_tools" 40 ]; 41 42 meta = with lib; { 43 description = "Library for converting bluetooth data and packets"; 44 homepage = "https://github.com/Bluetooth-Devices/bluetooth-data-tools"; 45 changelog = "https://github.com/Bluetooth-Devices/bluetooth-data-tools/blob/v${version}/CHANGELOG.md"; 46 license = with licenses; [ asl20 ]; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}