Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 56 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, buildPythonPackage, callPackage, fetchFromGitHub, pytest, pythonOlder, setuptools-scm}:
buildPythonPackage rec { pname = "pytest-asyncio"; version = "0.21.1"; # N.B.: when updating, tests bleak and aioesphomeapi tests format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "pytest-dev"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-Wpo8MpCPGiXrckT2x5/yBYtGlzso/L2urG7yGc7SPkA="; };
outputs = [ "out" "testout" ];
nativeBuildInputs = [ 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/v${version}/docs/source/reference/changelog.rst"; license = licenses.asl20; maintainers = with maintainers; [ dotlambda ]; };}