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

51 lines
1.0 KiB
Nix

{
lib,
anyio,
buildPythonPackage,
fetchFromGitHub,
flit-core,
pytestCheckHook,
trio,
}:
buildPythonPackage rec {
pname = "asyncclick";
version = "8.1.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-trio";
repo = "asyncclick";
tag = "${version}+async";
hash = "sha256-J294pYuNOSm7v2BbwDpzn3uelAnZ3ip2U1gWuchhOtA=";
};
build-system = [ flit-core ];
dependencies = [ anyio ];
nativeCheckInputs = [
pytestCheckHook
trio
];
pytestFlags = [
"-Wignore::trio.TrioDeprecationWarning"
];
disabledTests = [
# AttributeError: 'Context' object has no attribute '_ctx_mgr'
"test_context_pushing"
];
pythonImportsCheck = [ "asyncclick" ];
meta = {
description = "Python composable command line utility";
homepage = "https://github.com/python-trio/asyncclick";
changelog = "https://github.com/python-trio/asyncclick/blob/${version}/CHANGES.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}