mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{ lib
|
|
, anyio
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools-scm
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, trio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asyncclick";
|
|
version = "8.1.3.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-trio";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-by1clF+WAfN/gjOg/F60O1tCZ3qAhWqiiJJY04iMzQ8=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
anyio
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
trio
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"-W" "ignore::trio.TrioDeprecationWarning"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|