Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 61 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ lib, buildPythonPackage, fetchFromGitHub, cryptography, cython, poetry-core, pytest-benchmark, pytest-codspeed, pytest-cov-stub, pytestCheckHook, pythonOlder, setuptools,}:
buildPythonPackage rec { pname = "bluetooth-data-tools"; version = "1.28.2"; pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub { owner = "Bluetooth-Devices"; repo = "bluetooth-data-tools"; tag = "v${version}"; hash = "sha256-vXg8qNfA/Q2kCK5bhABNHL26zAtapelSZy3tjrD2JTo="; };
# The project can build both an optimized cython version and an unoptimized # python version. This ensures we fail if we build the wrong one. env.REQUIRE_CYTHON = 1;
build-system = [ cython poetry-core setuptools ];
dependencies = [ cryptography ];
nativeCheckInputs = [ pytest-benchmark pytest-codspeed pytest-cov-stub pytest-codspeed pytestCheckHook ];
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "bluetooth_data_tools" ];
meta = with lib; { description = "Library for converting bluetooth data and packets"; homepage = "https://github.com/Bluetooth-Devices/bluetooth-data-tools"; changelog = "https://github.com/Bluetooth-Devices/bluetooth-data-tools/blob/${src.tag}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; };}