evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pytest-asyncio / default.nix
blob78baca8da38adf8cd5e676e29eeab1d6e395986b
2   lib,
3   buildPythonPackage,
4   callPackage,
5   fetchFromGitHub,
6   pytest,
7   pythonOlder,
8   setuptools-scm,
9 }:
11 buildPythonPackage rec {
12   pname = "pytest-asyncio";
13   version = "0.23.8"; # N.B.: when updating, tests bleak and aioesphomeapi tests
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "pytest-dev";
20     repo = "pytest-asyncio";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-kMv0crYuYHi1LF+VlXizZkG87kSL7xzsKq9tP9LgFVY=";
23   };
25   outputs = [
26     "out"
27     "testout"
28   ];
30   build-system = [ setuptools-scm ];
32   buildInputs = [ pytest ];
34   postInstall = ''
35     mkdir $testout
36     cp -R tests $testout/tests
37   '';
39   doCheck = false;
40   passthru.tests.pytest = callPackage ./tests.nix { };
42   pythonImportsCheck = [ "pytest_asyncio" ];
44   meta = with lib; {
45     description = "Library for testing asyncio code with pytest";
46     homepage = "https://github.com/pytest-dev/pytest-asyncio";
47     changelog = "https://github.com/pytest-dev/pytest-asyncio/blob/v${version}/docs/source/reference/changelog.rst";
48     license = licenses.asl20;
49     maintainers = with maintainers; [ dotlambda ];
50   };