mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
Merge pull request #295415 from fabaff/airthings-ble-bump
python311Packages.airthings-ble: 0.6.1 -> 0.7.0
This commit is contained in:
commit
5fa02d3366
@ -1,5 +1,6 @@
|
||||
{ lib
|
||||
, async-interrupt
|
||||
, async-timeout
|
||||
, bleak
|
||||
, bleak-retry-connector
|
||||
, buildPythonPackage
|
||||
@ -11,21 +12,21 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "airthings-ble";
|
||||
version = "0.6.1";
|
||||
version = "0.7.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vincegio";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
repo = "airthings-ble";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-A7Nrg0O+WVoHP+m8pz6idnNcxulwPYmMt9DfhKTHG24=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "-v -Wdefault --cov=airthings_ble --cov-report=term-missing:skip-covered" ""
|
||||
--replace-fail "-v -Wdefault --cov=airthings_ble --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -36,6 +37,8 @@ buildPythonPackage rec {
|
||||
async-interrupt
|
||||
bleak
|
||||
bleak-retry-connector
|
||||
] ++ lib.optionals (pythonOlder "3.11") [
|
||||
async-timeout
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
|
Loading…
Reference in New Issue
Block a user