瀏覽代碼

Merge pull request #97625 from drewrisinger/zhf/pyfakefs-20.09

[20.09] python3Packages.pyfakefs: disable on py2.7
wip-nanopi-m4v2
Gabriel Ebner 6 年之前
committed by GitHub
父節點
當前提交
4e43b8a9e7
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 3 次插入 和 3 次删除
  1. +3
    -3
      pkgs/development/python-modules/pyfakefs/default.nix

+ 3
- 3
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;
@@ -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 = ''
@@ -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 ];
};
}

Loading…
取消
儲存