diff --git a/pkgs/development/python-modules/pytest-trio/default.nix b/pkgs/development/python-modules/pytest-trio/default.nix index 5499c41d5f87..d55ad6969d35 100644 --- a/pkgs/development/python-modules/pytest-trio/default.nix +++ b/pkgs/development/python-modules/pytest-trio/default.nix @@ -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 ]; }; } diff --git a/pkgs/development/python-modules/trio/default.nix b/pkgs/development/python-modules/trio/default.nix index 288e7db4add0..d7a0ca6c693b 100644 --- a/pkgs/development/python-modules/trio/default.nix +++ b/pkgs/development/python-modules/trio/default.nix @@ -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 = [ ]; };