Files
nixpkgs/pkgs/development/python-modules/blebox-uniapi/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
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
2026-01-11 09:34:20 -08:00

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
semver,
deepmerge,
jmespath,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "blebox-uniapi";
version = "2.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "blebox";
repo = "blebox_uniapi";
tag = "v${version}";
hash = "sha256-johTs1AGvC6mGasK87ijhBNbHb1m36Ep9TR8XPG35d0=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "pytest-runner" ""
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
aiohttp
jmespath
semver
];
nativeCheckInputs = [
deepmerge
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "blebox_uniapi" ];
meta = {
changelog = "https://github.com/blebox/blebox_uniapi/blob/v${version}/HISTORY.rst";
description = "Python API for accessing BleBox smart home devices";
homepage = "https://github.com/blebox/blebox_uniapi";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}