567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
912 B
Nix
41 lines
912 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
responses,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "btsmarthub-devicelist";
|
|
version = "0.2.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jxwolstenholme";
|
|
repo = "btsmarthub_devicelist";
|
|
rev = version;
|
|
hash = "sha256-7ncxCpY+A2SuSFa3k21QchrmFs1dPRUMb1r1z/laa6M=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
nativeCheckInputs = [
|
|
responses
|
|
requests
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [ "test_btsmarthub2_detection_neither_router_present" ];
|
|
|
|
meta = {
|
|
description = "Retrieve a list of devices from a bt smarthub or bt smarthub 2 on a local network";
|
|
homepage = "https://github.com/jxwolstenholme/btsmarthub_devicelist";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ jamiemagee ];
|
|
};
|
|
}
|