Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pytest-trio / default.nix
blob872e9dc8fc0dd8c79ccf5c9c45bb3ef441d984c1
1 { lib, buildPythonPackage, fetchFromGitHub, pythonOlder
2 , trio, async-generator, hypothesis, outcome, pytest }:
4 buildPythonPackage rec {
5   pname = "pytest-trio";
6   version = "0.8.0";
7   disabled = pythonOlder "3.6";
9   src = fetchFromGitHub {
10     owner = "python-trio";
11     repo = pname;
12     rev = "v${version}";
13     sha256 = "sha256-gUH35Yk/pBD2EdCEt8D0XQKWU8BwmX5xtAW10qRhoYk=";
14   };
16   buildInputs = [ pytest ];
18   propagatedBuildInputs = [
19     trio
20     async-generator
21     outcome
22   ];
24   nativeCheckInputs = [
25     pytest
26     hypothesis
27   ];
29   # broken with pytest 5 and 6
30   doCheck = false;
31   checkPhase = ''
32     rm pytest.ini
33     PYTHONPATH=$PWD:$PYTHONPATH pytest
34   '';
36   pythonImportsCheck = [ "pytest_trio" ];
38   meta = with lib; {
39     description = "Pytest plugin for trio";
40     homepage = "https://github.com/python-trio/pytest-trio";
41     license = licenses.asl20;
42     maintainers = with maintainers; [ hexa ];
43   };