This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
41 lines
914 B
Nix
41 lines
914 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 = with lib; {
|
|
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 = licenses.mit;
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
};
|
|
}
|