Merge pull request #189960 from fabaff/tilt

python310Packages.tilt-ble: init at 0.2.2
This commit is contained in:
Fabian Affolter 2022-09-08 08:59:10 +02:00 committed by GitHub
commit d4d2a48965
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,55 @@
{ lib
, bluetooth-sensor-state-data
, buildPythonPackage
, fetchFromGitHub
, home-assistant-bluetooth
, poetry-core
, pytestCheckHook
, pythonOlder
, sensor-state-data
}:
buildPythonPackage rec {
pname = "tilt-ble";
version = "0.2.2";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
rev = "v${version}";
hash = "sha256-inr2cPl627w2klSqScMg3dvofIkX3hGb44+Go6ah/6I=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
bluetooth-sensor-state-data
home-assistant-bluetooth
sensor-state-data
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=tilt_ble --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"tilt_ble"
];
meta = with lib; {
description = "Library for Tilt BLE devices";
homepage = "https://github.com/Bluetooth-Devices/tilt-ble";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -10894,6 +10894,8 @@ in {
tilestache = callPackage ../development/python-modules/tilestache { };
tilt-ble = callPackage ../development/python-modules/tilt-ble { };
timeago = callPackage ../development/python-modules/timeago { };
timecop = callPackage ../development/python-modules/timecop { };