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
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
aenum,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
aiohttp,
|
|
aioresponses,
|
|
hatchling,
|
|
pydantic,
|
|
pytest-asyncio,
|
|
pytest-httpx,
|
|
pytestCheckHook,
|
|
rich,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "intellifire4py";
|
|
version = "4.2.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jeeftor";
|
|
repo = "intellifire4py";
|
|
tag = "v${version}";
|
|
hash = "sha256-kCZkIR8SmrLTm86M87juV7oQ+O01AA4pzkBMnKCnbNA=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
aenum
|
|
pydantic
|
|
rich
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
pytest-asyncio
|
|
pytest-httpx
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "intellifire4py" ];
|
|
|
|
meta = {
|
|
description = "Module to read Intellifire fireplace status data";
|
|
homepage = "https://github.com/jeeftor/intellifire4py";
|
|
changelog = "https://github.com/jeeftor/intellifire4py/releases/tag/v${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "intellifire4py";
|
|
|
|
};
|
|
}
|