1be0098156
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
52 lines
972 B
Nix
52 lines
972 B
Nix
{ lib
|
|
, anyio
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools-scm
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, trio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asyncclick";
|
|
version = "8.1.3.2";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-trio";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-by1clF+WAfN/gjOg/F60O1tCZ3qAhWqiiJJY04iMzQ8=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
anyio
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
trio
|
|
];
|
|
|
|
disabledTests = [
|
|
# RuntimeWarning: coroutine 'Context.invoke' was never awaited
|
|
"test_context_invoke_type"
|
|
];
|
|
|
|
pythonImportsCheck = [ "asyncclick" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python composable command line utility";
|
|
homepage = "https://github.com/python-trio/asyncclick";
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|