wlroots: 0.18.1 -> 0.18.2 (#364488)
[NixPkgs.git] / pkgs / development / python-modules / pytest-tornasync / default.nix
blob43464e3ce149a1d70706d7f8434b0d2f79d21388
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   isPy27,
6   pytest,
7   tornado,
8 }:
10 buildPythonPackage rec {
11   pname = "pytest-tornasync";
12   version = "0.6.0.post2";
13   format = "setuptools";
14   disabled = isPy27;
16   src = fetchFromGitHub {
17     owner = "eukaryote";
18     repo = pname;
19     # upstream does not keep git tags in sync with pypy releases
20     # https://github.com/eukaryote/pytest-tornasync/issues/9
21     rev = "c5f013f1f727f1ca1fcf8cc748bba7f4a2d79e56";
22     sha256 = "04cg1cfrr55dbi8nljkpcsc103i5c6p0nr46vjr0bnxgkxx03x36";
23   };
25   buildInputs = [ pytest ];
27   propagatedBuildInputs = [ tornado ];
29   __darwinAllowLocalNetworking = true;
31   nativeCheckInputs = [
32     pytest
33     tornado
34   ];
36   checkPhase = ''
37     pytest test
38   '';
40   meta = with lib; {
41     description = "py.test plugin for testing Python 3.5+ Tornado code";
42     homepage = "https://github.com/eukaryote/pytest-tornasync";
43     license = licenses.mit;
44     maintainers = [ ];
45   };