1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 greenlet,
7 pytest,
8 decorator,
9 twisted,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "pytest-twisted";
15 version = "1.14.3";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "pytest-dev";
20 repo = "pytest-twisted";
21 tag = "v${version}";
22 hash = "sha256-1dAfCa6hON0Vh9StI1Xw69IAwBzUkR6DdjQ0HNyoyME=";
23 };
24
25 build-system = [ setuptools ];
26
27 buildInputs = [ pytest ];
28
29 dependencies = [
30 decorator
31 greenlet
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 twisted
37 ];
38
39 pythonImportsCheck = [ "pytest_twisted" ];
40
41 meta = with lib; {
42 changelog = "https://github.com/pytest-dev/pytest-twisted/releases/tag/v${version}";
43 description = "Twisted plugin for py.test";
44 homepage = "https://github.com/pytest-dev/pytest-twisted";
45 license = licenses.bsd3;
46 maintainers = [ ];
47 };
48}