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
46 lines
888 B
Nix
46 lines
888 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
bleak,
|
|
buildPythonPackage,
|
|
csrmesh,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "halohome";
|
|
version = "0.7.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nayaverdier";
|
|
repo = "halohome";
|
|
tag = version;
|
|
hash = "sha256-JOQ2q5lbdVTerXPt6QHBiTG9PzN9LiuLcN+XnOoyYjA=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
bleak
|
|
csrmesh
|
|
];
|
|
|
|
pythonRelaxDeps = [ "bleak" ];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "halohome" ];
|
|
|
|
meta = {
|
|
description = "Python library to control Eaton HALO Home Smart Lights";
|
|
homepage = "https://github.com/nayaverdier/halohome";
|
|
changelog = "https://github.com/nayaverdier/halohome/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|