python3Packages.pytest-asyncio_0: re-init at 0.26.0

Reintroduced for compat reasons.

Changed files
+50
pkgs
development
python-modules
pytest-asyncio
top-level
+48
pkgs/development/python-modules/pytest-asyncio/0.nix
···
+
{
+
lib,
+
buildPythonPackage,
+
callPackage,
+
fetchFromGitHub,
+
pytest,
+
setuptools-scm,
+
}:
+
+
buildPythonPackage rec {
+
pname = "pytest-asyncio";
+
version = "0.26.0"; # N.B.: when updating, tests bleak and aioesphomeapi tests
+
pyproject = true;
+
+
src = fetchFromGitHub {
+
owner = "pytest-dev";
+
repo = "pytest-asyncio";
+
tag = "v${version}";
+
hash = "sha256-GEhFwwQCXwtqfSiew/sOvJYV3JREqOGD4fQONlRR/Mw=";
+
};
+
+
outputs = [
+
"out"
+
"testout"
+
];
+
+
build-system = [ setuptools-scm ];
+
+
buildInputs = [ pytest ];
+
+
postInstall = ''
+
mkdir $testout
+
cp -R tests $testout/tests
+
'';
+
+
doCheck = false;
+
passthru.tests.pytest = callPackage ./tests.nix { };
+
+
pythonImportsCheck = [ "pytest_asyncio" ];
+
+
meta = with lib; {
+
description = "Library for testing asyncio code with pytest";
+
homepage = "https://github.com/pytest-dev/pytest-asyncio";
+
changelog = "https://github.com/pytest-dev/pytest-asyncio/blob/${src.tag}/docs/reference/changelog.rst";
+
license = licenses.asl20;
+
maintainers = with maintainers; [ dotlambda ];
+
};
+
}
+2
pkgs/top-level/python-packages.nix
···
callPackage ../development/python-modules/pytest-asyncio-cooperative
{ };
+
pytest-asyncio_0 = callPackage ../development/python-modules/pytest-asyncio/0.nix { };
+
pytest-asyncio_0_21 = pytest-asyncio.overridePythonAttrs (old: rec {
version = "0.21.2";
src = pkgs.fetchFromGitHub {