depot/third_party/nixpkgs/pkgs/development/python-modules/asyncclick/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

54 lines
1.1 KiB
Nix

{
lib,
anyio,
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
pytestCheckHook,
pythonOlder,
trio,
}:
buildPythonPackage rec {
pname = "asyncclick";
version = "8.1.7.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "python-trio";
repo = "asyncclick";
rev = "refs/tags/${version}";
hash = "sha256-ahzI7yILq1OpZ6IT0qt8vjzi6I6zAoTrULOl8CqRw4A=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ anyio ];
nativeCheckInputs = [
pytestCheckHook
trio
];
pytestFlagsArray = [
"-W"
"ignore::trio.TrioDeprecationWarning"
];
disabledTests = [
# AttributeError: 'Context' object has no attribute '_ctx_mgr'
"test_context_pushing"
];
pythonImportsCheck = [ "asyncclick" ];
meta = with lib; {
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 = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}