mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 09:36:32 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
bluetooth-data-tools,
|
|
bluetooth-sensor-state-data,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
home-assistant-bluetooth,
|
|
poetry-core,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
sensor-state-data,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sensorpush-ble";
|
|
version = "1.9.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Bluetooth-Devices";
|
|
repo = "sensorpush-ble";
|
|
tag = "v${version}";
|
|
hash = "sha256-Jsf/NTVwEHoH989yQqWEdG43H74JHlKpUvMWuH4paOw=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
bluetooth-data-tools
|
|
bluetooth-sensor-state-data
|
|
home-assistant-bluetooth
|
|
sensor-state-data
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "sensorpush_ble" ];
|
|
|
|
meta = {
|
|
description = "Library for SensorPush BLE devices";
|
|
homepage = "https://github.com/Bluetooth-Devices/sensorpush-ble";
|
|
changelog = "https://github.com/Bluetooth-Devices/sensorpush-ble/releases/tag/v${version}";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|