2021-10-04 12:37:57 +00:00
|
|
|
{ lib
|
|
|
|
, anyio
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools-scm
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, trio
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncclick";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "8.1.7.1";
|
|
|
|
pyproject = true;
|
2021-10-04 12:37:57 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-trio";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "asyncclick";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-gx7s/HikvjsXalc0Z73JWMKc1SlhR+kohwk2sW4o19I=";
|
2021-10-04 12:37:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
anyio
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-10-04 12:37:57 +00:00
|
|
|
pytestCheckHook
|
|
|
|
trio
|
|
|
|
];
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-W" "ignore::trio.TrioDeprecationWarning"
|
|
|
|
];
|
|
|
|
|
2021-10-04 12:37:57 +00:00
|
|
|
disabledTests = [
|
2024-01-25 14:12:00 +00:00
|
|
|
# AttributeError: 'Context' object has no attribute '_ctx_mgr'
|
|
|
|
"test_context_pushing"
|
2021-10-04 12:37:57 +00:00
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"asyncclick"
|
|
|
|
];
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python composable command line utility";
|
|
|
|
homepage = "https://github.com/python-trio/asyncclick";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/python-trio/asyncclick/blob/${version}/CHANGES.rst";
|
2021-10-04 12:37:57 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|