checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
45 lines
932 B
Nix
45 lines
932 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
|
, trio, async_generator, hypothesis, outcome, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-trio";
|
|
version = "0.7.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-trio";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0bhh2nknhp14jzsx4zzpqm4qnfaihyi65cjf6kf6qgdhc0ax6nf4";
|
|
};
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [
|
|
trio
|
|
async_generator
|
|
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 ];
|
|
};
|
|
}
|