python3Packages.pyfakefs: switch to pytestCheckHook
This commit is contained in:
parent
7efb7b32f5
commit
1983e27ac9
@ -1,4 +1,10 @@
|
|||||||
{ lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder, python, pytest, glibcLocales }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "4.3.3";
|
version = "4.3.3";
|
||||||
@ -25,20 +31,16 @@ buildPythonPackage rec {
|
|||||||
--replace "test_rename_dir_to_existing_dir" "notest_rename_dir_to_existing_dir"
|
--replace "test_rename_dir_to_existing_dir" "notest_rename_dir_to_existing_dir"
|
||||||
'');
|
'');
|
||||||
|
|
||||||
checkInputs = [ pytest glibcLocales ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
# https://github.com/jmcgeheeiv/pyfakefs/issues/581 (OSError: [Errno 9] Bad file descriptor)
|
||||||
checkPhase = ''
|
disabledTests = [ "test_open_existing_pipe" ];
|
||||||
export LC_ALL=en_US.UTF-8
|
pythonImportsCheck = [ "pyfakefs" ];
|
||||||
${python.interpreter} -m pyfakefs.tests.all_tests
|
|
||||||
${python.interpreter} -m pyfakefs.tests.all_tests_without_extra_packages
|
|
||||||
${python.interpreter} -m pytest pyfakefs/pytest_tests/pytest_plugin_test.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Fake file system that mocks the Python file system modules";
|
description = "Fake file system that mocks the Python file system modules";
|
||||||
license = licenses.asl20;
|
homepage = "http://pyfakefs.org/";
|
||||||
homepage = "http://pyfakefs.org/";
|
changelog = "https://github.com/jmcgeheeiv/pyfakefs/blob/master/CHANGES.md";
|
||||||
changelog = "https://github.com/jmcgeheeiv/pyfakefs/blob/master/CHANGES.md";
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ gebner ];
|
maintainers = with maintainers; [ gebner ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user