depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-trio/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

52 lines
935 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
trio,
hypothesis,
outcome,
pytest,
}:
buildPythonPackage rec {
pname = "pytest-trio";
version = "0.8.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "python-trio";
repo = pname;
rev = "v${version}";
sha256 = "sha256-gUH35Yk/pBD2EdCEt8D0XQKWU8BwmX5xtAW10qRhoYk=";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [
trio
outcome
];
nativeCheckInputs = [
pytest
hypothesis
];
# broken with pytest 5 and 6
doCheck = false;
checkPhase = ''
rm pytest.ini
PYTHONPATH=$PWD:$PYTHONPATH pytest
'';
pythonImportsCheck = [ "pytest_trio" ];
meta = with lib; {
description = "Pytest plugin for trio";
homepage = "https://github.com/python-trio/pytest-trio";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}