depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-asyncio/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

52 lines
919 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flaky
, hypothesis
, pytest
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pytest-asyncio";
version = "0.17.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "pytest-dev";
repo = pname;
rev = "v${version}";
sha256 = "sha256-4wDXvO6pDK0dQLnyfJTTa+GXf9Qtsi6ywYDUIdhkgGo=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
pytest
];
checkInputs = [
flaky
hypothesis
pytestCheckHook
];
pythonImportsCheck = [
"pytest_asyncio"
];
meta = with lib; {
description = "library for testing asyncio code with pytest";
homepage = "https://github.com/pytest-dev/pytest-asyncio";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}