mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 03:43:45 +00:00
Merge pull request #171739 from dotlambda/brunt-init
home-assistant: support brunt component
This commit is contained in:
commit
59a5e71ff0
47
pkgs/development/python-modules/brunt/default.nix
Normal file
47
pkgs/development/python-modules/brunt/default.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, aiohttp
|
||||
, requests
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "brunt";
|
||||
version = "1.2.0";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e704627dc7b9c0a50c67ae90f1d320b14f99f2b2fc9bf1ef0461b141dcf1bce9";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/--cov/d' setup.cfg
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
requests
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# tests require Brunt hardware
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "brunt" ];
|
||||
|
||||
meta = {
|
||||
description = "Unofficial Python SDK for Brunt";
|
||||
homepage = "https://github.com/eavanvalkenburg/brunt-api";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
@ -311,7 +311,8 @@
|
||||
"browser" = ps: with ps; [
|
||||
];
|
||||
"brunt" = ps: with ps; [
|
||||
]; # missing inputs: brunt
|
||||
brunt
|
||||
];
|
||||
"bsblan" = ps: with ps; [
|
||||
bsblan
|
||||
];
|
||||
@ -3218,6 +3219,7 @@
|
||||
"braviatv"
|
||||
"broadlink"
|
||||
"brother"
|
||||
"brunt"
|
||||
"bsblan"
|
||||
"buienradar"
|
||||
"button"
|
||||
|
@ -1388,6 +1388,8 @@ in {
|
||||
|
||||
browser-cookie3 = callPackage ../development/python-modules/browser-cookie3 { };
|
||||
|
||||
brunt = callPackage ../development/python-modules/brunt { };
|
||||
|
||||
bsddb3 = callPackage ../development/python-modules/bsddb3 { };
|
||||
|
||||
bsdiff4 = callPackage ../development/python-modules/bsdiff4 { };
|
||||
|
Loading…
Reference in New Issue
Block a user