nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 1.1 kB view raw
1{ 2 lib, 3 anyio, 4 buildPythonPackage, 5 fetchFromGitHub, 6 flit-core, 7 pytestCheckHook, 8 trio, 9}: 10 11buildPythonPackage rec { 12 pname = "asyncclick"; 13 version = "8.3.0.5+async"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "python-trio"; 18 repo = "asyncclick"; 19 tag = version; 20 hash = "sha256-gKtxwI/vDB2pDrhiA+e1TClwW5nXvBRCMF3oCNoLaDo="; 21 }; 22 23 build-system = [ flit-core ]; 24 25 dependencies = [ anyio ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 trio 30 ]; 31 32 pytestFlags = [ 33 "-Wignore::trio.TrioDeprecationWarning" 34 ]; 35 36 disabledTests = [ 37 # AttributeError: 'Context' object has no attribute '_ctx_mgr' 38 "test_context_pushing" 39 # https://github.com/python-trio/asyncclick/issues/47 40 "test_echo_via_pager" 41 ]; 42 43 pythonImportsCheck = [ "asyncclick" ]; 44 45 meta = { 46 description = "Python composable command line utility"; 47 homepage = "https://github.com/python-trio/asyncclick"; 48 changelog = "https://github.com/python-trio/asyncclick/blob/${src.tag}/CHANGES.rst"; 49 license = lib.licenses.bsd3; 50 maintainers = with lib.maintainers; [ fab ]; 51 }; 52}