depot/third_party/nixpkgs/pkgs/development/python-modules/asyncclick/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +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.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "python-trio";
repo = "asyncclick";
rev = "refs/tags/${version}";
hash = "sha256-gx7s/HikvjsXalc0Z73JWMKc1SlhR+kohwk2sW4o19I=";
};
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 ];
};
}