python3Packages.pytest-trio: modernize
This commit is contained in:
parent
fea1ab34b7
commit
db8b2611a2
@ -2,7 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
trio,
|
||||
hypothesis,
|
||||
outcome,
|
||||
@ -12,19 +12,20 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-trio";
|
||||
version = "0.8.0";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-trio";
|
||||
repo = "pytest-trio";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-gUH35Yk/pBD2EdCEt8D0XQKWU8BwmX5xtAW10qRhoYk=";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-gUH35Yk/pBD2EdCEt8D0XQKWU8BwmX5xtAW10qRhoYk=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
trio
|
||||
outcome
|
||||
];
|
||||
@ -43,10 +44,10 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "pytest_trio" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Pytest plugin for trio";
|
||||
homepage = "https://github.com/python-trio/pytest-trio";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
|
||||
@ -29,6 +29,8 @@
|
||||
let
|
||||
# escape infinite recursion with pytest-trio
|
||||
pytest-trio' = (pytest-trio.override { trio = null; }).overrideAttrs {
|
||||
# `pythonRemoveDeps` is not working properly
|
||||
dontCheckRuntimeDeps = true;
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ ];
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user