Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.pyfakefs: disable on python 2.7 #97619

Merged
merged 1 commit into from Sep 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkgs/development/python-modules/pyfakefs/default.nix
@@ -1,8 +1,9 @@
{ stdenv, buildPythonPackage, fetchPypi, python, pytest, glibcLocales, isPy37 }:
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, python, pytest, glibcLocales }:

buildPythonPackage rec {
version = "4.1.0";
pname = "pyfakefs";
disabled = pythonOlder "3.5";

src = fetchPypi {
inherit pname version;
Expand All @@ -24,8 +25,6 @@ buildPythonPackage rec {
--replace "test_rename_dir_to_existing_dir" "notest_rename_dir_to_existing_dir"
'');

# https://github.com/jmcgeheeiv/pyfakefs/issues/508
doCheck = !isPy37;
checkInputs = [ pytest glibcLocales ];

checkPhase = ''
Expand All @@ -39,6 +38,7 @@ buildPythonPackage rec {
description = "Fake file system that mocks the Python file system modules";
license = licenses.asl20;
homepage = "http://pyfakefs.org/";
changelog = "https://github.com/jmcgeheeiv/pyfakefs/blob/master/CHANGES.md";
maintainers = with maintainers; [ gebner ];
};
}