1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
38 lines
864 B
Nix
38 lines
864 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
requests,
|
|
responses,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "btsmarthub-devicelist";
|
|
version = "0.2.3";
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|