mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
python310Packages.pysnooz: init at 0.8.3
This commit is contained in:
parent
04abe7d80c
commit
cd314ad205
2 changed files with 70 additions and 0 deletions
68
pkgs/development/python-modules/pysnooz/default.nix
Normal file
68
pkgs/development/python-modules/pysnooz/default.nix
Normal file
|
@ -0,0 +1,68 @@
|
|||
{ lib
|
||||
, bleak
|
||||
, bleak-retry-connector
|
||||
, bluetooth-sensor-state-data
|
||||
, buildPythonPackage
|
||||
, events
|
||||
, fetchFromGitHub
|
||||
, freezegun
|
||||
, home-assistant-bluetooth
|
||||
, poetry-core
|
||||
, pytest-asyncio
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, transitions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pysnooz";
|
||||
version = "0.8.3";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AustinBrunkhorst";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-K99sE9vxJo6grkp04DmTKOVqdfpQI0kUzJjSR6gnSew=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'transitions = "^0.8.11"' 'transitions = ">0.8.11"' \
|
||||
--replace " --cov=pysnooz --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bleak
|
||||
bleak-retry-connector
|
||||
bluetooth-sensor-state-data
|
||||
events
|
||||
home-assistant-bluetooth
|
||||
transitions
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
freezegun
|
||||
pytest-asyncio
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pysnooz"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library to control SNOOZ white noise machines";
|
||||
homepage = "https://github.com/AustinBrunkhorst/pysnooz";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -8570,6 +8570,8 @@ self: super: with self; {
|
|||
|
||||
pysnooper = callPackage ../development/python-modules/pysnooper { };
|
||||
|
||||
pysnooz = callPackage ../development/python-modules/pysnooz { };
|
||||
|
||||
pysnow = callPackage ../development/python-modules/pysnow { };
|
||||
|
||||
pysocks = callPackage ../development/python-modules/pysocks { };
|
||||
|
|
Loading…
Reference in a new issue