nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 57 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flaky 5, hypothesis 6, pytest 7, pytestCheckHook 8, pythonOlder 9, setuptools-scm 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-asyncio"; 14 version = "0.18.3"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "pytest-dev"; 21 repo = pname; 22 rev = "v${version}"; 23 hash = "sha256-eopKlDKiTvGmqcqw44MKlhvSKswKZd/VDYRpZbuyOqM="; 24 }; 25 26 SETUPTOOLS_SCM_PRETEND_VERSION = version; 27 28 nativeBuildInputs = [ 29 setuptools-scm 30 ]; 31 32 buildInputs = [ 33 pytest 34 ]; 35 36 checkInputs = [ 37 flaky 38 hypothesis 39 pytestCheckHook 40 ]; 41 42 disabledTestPaths = [ 43 "tests/trio" # pytest-trio causes infinite recursion 44 ]; 45 46 pythonImportsCheck = [ 47 "pytest_asyncio" 48 ]; 49 50 meta = with lib; { 51 description = "Library for testing asyncio code with pytest"; 52 homepage = "https://github.com/pytest-dev/pytest-asyncio"; 53 changelog = "https://github.com/pytest-dev/pytest-asyncio/blob/${src.rev}/CHANGELOG.rst"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ dotlambda ]; 56 }; 57}