python3Packages.pyfakefs: 5.2.4 -> 5.3.2
https://github.com/jmcgeheeiv/pyfakefs/blob/v5.3.2/CHANGES.md
This commit is contained in:
@@ -2,19 +2,25 @@
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "5.2.4";
|
||||
format = "setuptools";
|
||||
pname = "pyfakefs";
|
||||
version = "5.3.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-PgQPN5IIYIag3CGRsF/nCUOOFoqv4ulPzb7444WSCNg=";
|
||||
hash = "sha256-qDd2o8EEbU0QPy9TACmqbN/18Dht/9WcFe4WkmE1STw=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -30,21 +36,26 @@ buildPythonPackage rec {
|
||||
--replace "test_rename_dir_to_existing_dir" "notest_rename_dir_to_existing_dir"
|
||||
'');
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
# https://github.com/jmcgeheeiv/pyfakefs/issues/581 (OSError: [Errno 9] Bad file descriptor)
|
||||
disabledTests = [ "test_open_existing_pipe" ];
|
||||
|
||||
disabledTestPaths = [
|
||||
# try to import opentimelineio but nixpkgs doesn't have it as of 2023-09-16
|
||||
"pyfakefs/pytest_tests/segfault_test.py"
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyfakefs" ];
|
||||
pythonImportsCheck = [
|
||||
"pyfakefs"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# https://github.com/jmcgeheeiv/pyfakefs/issues/581 (OSError: [Errno 9] Bad file descriptor)
|
||||
#disabledTests = [ "test_open_existing_pipe" ];
|
||||
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fake file system that mocks the Python file system modules";
|
||||
homepage = "http://pyfakefs.org/";
|
||||
changelog = "https://github.com/jmcgeheeiv/pyfakefs/blob/master/CHANGES.md";
|
||||
changelog = "https://github.com/jmcgeheeiv/pyfakefs/blob/v${version}/CHANGES.md";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ gebner ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user