nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 callPackage, 5 fetchFromGitHub, 6 pytest, 7 setuptools-scm, 8}: 9 10buildPythonPackage rec { 11 pname = "pytest-asyncio"; 12 version = "0.26.0"; # N.B.: when updating, tests bleak and aioesphomeapi tests 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "pytest-dev"; 17 repo = "pytest-asyncio"; 18 tag = "v${version}"; 19 hash = "sha256-GEhFwwQCXwtqfSiew/sOvJYV3JREqOGD4fQONlRR/Mw="; 20 }; 21 22 outputs = [ 23 "out" 24 "testout" 25 ]; 26 27 build-system = [ setuptools-scm ]; 28 29 buildInputs = [ pytest ]; 30 31 pythonRelaxDeps = [ "pytest" ]; 32 33 postInstall = '' 34 mkdir $testout 35 cp -R tests $testout/tests 36 ''; 37 38 doCheck = false; 39 passthru.tests.pytest = callPackage ./tests.nix { }; 40 41 pythonImportsCheck = [ "pytest_asyncio" ]; 42 43 meta = { 44 description = "Library for testing asyncio code with pytest"; 45 homepage = "https://github.com/pytest-dev/pytest-asyncio"; 46 changelog = "https://github.com/pytest-dev/pytest-asyncio/blob/${src.tag}/docs/reference/changelog.rst"; 47 license = lib.licenses.asl20; 48 maintainers = with lib.maintainers; [ dotlambda ]; 49 }; 50}