Files
nixpkgs/pkgs/development/python-modules/asyncio-dgram/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

49 lines
1.0 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "asyncio-dgram";
version = "2.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jsbronder";
repo = "asyncio-dgram";
tag = "v${version}";
hash = "sha256-9aO3xFmoR74uZSzxBPRVvz0QSW15TAdWEszLBX8AUR4=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
# OSError: AF_UNIX path too long
doCheck = !stdenv.hostPlatform.isDarwin;
disabledTests = [
"test_protocol_pause_resume"
# TypeError: socket type must be 2
"test_from_socket_bad_socket"
];
pythonImportsCheck = [ "asyncio_dgram" ];
meta = {
description = "Python support for higher level Datagram";
homepage = "https://github.com/jsbronder/asyncio-dgram";
changelog = "https://github.com/jsbronder/asyncio-dgram/blob/v${version}/ChangeLog";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}