nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 899 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytest-asyncio, 7 pytest-cov-stub, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "async-interrupt"; 13 version = "1.2.2"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "bdraco"; 18 repo = "async_interrupt"; 19 tag = "v${version}"; 20 hash = "sha256-M0ftyHstBP7+6M2b6yV33mSuO4B8QF3ixRvNJ/WeSEA="; 21 }; 22 23 build-system = [ poetry-core ]; 24 25 nativeCheckInputs = [ 26 pytest-asyncio 27 pytest-cov-stub 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "async_interrupt" ]; 32 33 meta = { 34 description = "Context manager to raise an exception when a future is done"; 35 homepage = "https://github.com/bdraco/async_interrupt"; 36 changelog = "https://github.com/bdraco/async_interrupt/blob/${src.tag}/CHANGELOG.md"; 37 license = lib.licenses.asl20; 38 maintainers = with lib.maintainers; [ fab ]; 39 }; 40}