aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-timeout/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-timeout/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-timeout/default.nix36
1 files changed, 19 insertions, 17 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-timeout/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-timeout/default.nix
index 30bd93e433dc..6bf3483d40f9 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-timeout/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-timeout/default.nix
@@ -1,34 +1,36 @@
-{ buildPythonPackage
+{ lib
+, buildPythonPackage
, fetchPypi
-, fetchpatch
-, lib
-, pexpect
, pytest
+, pytestCheckHook
+, pexpect
+, pytestcov
}:
buildPythonPackage rec {
pname = "pytest-timeout";
- version = "1.3.3";
+ version = "1.4.2";
src = fetchPypi {
inherit pname version;
- sha256 = "1cczcjhw4xx5sjkhxlhc5c1bkr7x6fcyx12wrnvwfckshdvblc2a";
+ sha256 = "0xnsigs0kmpq1za0d4i522sp3f71x5bgpdh3ski0rs74yqy13cr0";
};
- patches = fetchpatch {
- url = "https://bitbucket.org/pytest-dev/pytest-timeout/commits/36998c891573d8ec1db1acd4f9438cb3cf2aee2e/raw";
- sha256 = "05zc2w7mjgv8rm8i1cbxp7k09vlscmay5iy78jlzgjqkrx3wkf46";
- };
+ propagatedBuildInputs = [ pytest ];
+
+ checkInputs = [ pytestCheckHook pexpect pytestcov ];
- checkInputs = [ pytest pexpect ];
- checkPhase = ''
- # test_suppresses_timeout_when_pdb_is_entered fails under heavy load
- pytest -ra -k 'not test_suppresses_timeout_when_pdb_is_entered'
- '';
+ disabledTests = [
+ "test_suppresses_timeout_when_pdb_is_entered"
+ ];
+ pytestFlagsArray = [
+ "-ra"
+ ];
- meta = with lib;{
+ meta = with lib; {
description = "py.test plugin to abort hanging tests";
- homepage = "https://bitbucket.org/pytest-dev/pytest-timeout/";
+ homepage = "https://github.com/pytest-dev/pytest-timeout/";
+ changelog = "https://github.com/pytest-dev/pytest-timeout/#changelog";
license = licenses.mit;
maintainers = with maintainers; [ makefu costrouc ];
};