nixpkgs/pkgs/development/python-modules/aioeafm/default.nix
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

53 lines
1.2 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
poetry-core,
pytest-aiohttp,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aioeafm";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Jc2k";
repo = "aioeafm";
tag = version;
hash = "sha256-bL59EPvFd5vjay2sqBPGx+iL5sE/0n/EtR4K7obtDBE=";
};
patches = [
# Switch to poetry-core, https://github.com/Jc2k/aioeafm/pull/4
(fetchpatch {
name = "use-poetry-core.patch";
url = "https://github.com/Jc2k/aioeafm/commit/549590e2ed465be40e2406416d89b8a8cd8c6185.patch";
hash = "sha256-cG/vQI1XQO8LVvWsHrAj8KlPGRulvO7Ny+k0CKUpPqQ=";
})
];
build-system = [ poetry-core ];
dependencies = [ aiohttp ];
doCheck = false; # Failed: async def functions are not natively supported.
nativeCheckInputs = [
pytest-aiohttp
pytestCheckHook
];
pythonImportsCheck = [ "aioeafm" ];
meta = {
description = "Python client for access the Real Time flood monitoring API";
homepage = "https://github.com/Jc2k/aioeafm";
changelog = "https://github.com/Jc2k/aioeafm/releases/tag/${version}";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}