Files
nixpkgs/pkgs/development/python-modules/asyncclick/default.nix
2026-07-15 03:12:30 +02:00

54 lines
1.1 KiB
Nix

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