e749451470
Disables the `test_touch` test which fails with the following assertion error on hydra darwin only: ``` tmpdir = local('/private/tmp/nix-build-python3.8-fsspec-0.8.3.drv-0/pytest-of-nixbld3/pytest-0/test_touch0') def test_touch(tmpdir): import time fn = tmpdir + "/in/file" fs = fsspec.filesystem("file", auto_mkdir=False) with pytest.raises(OSError): fs.touch(fn) fs = fsspec.filesystem("file", auto_mkdir=True) fs.touch(fn) info = fs.info(fn) time.sleep(0.2) fs.touch(fn) info2 = fs.info(fn) if not WIN: > assert info2["mtime"] > info["mtime"] E assert 1601358357.0 > 1601358357.0 fsspec/implementations/tests/test_local.py:322: AssertionError ```
43 lines
984 B
Nix
43 lines
984 B
Nix
{ lib
|
||
, buildPythonPackage
|
||
, fetchFromGitHub
|
||
, pythonOlder
|
||
, pytestCheckHook
|
||
, numpy
|
||
, stdenv
|
||
}:
|
||
|
||
buildPythonPackage rec {
|
||
pname = "fsspec";
|
||
version = "0.8.3";
|
||
disabled = pythonOlder "3.5";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "intake";
|
||
repo = "filesystem_spec";
|
||
rev = version;
|
||
sha256 = "0mfy0wxjfwwnp5q2afhhfbampf0fk71wsv512pi9yvrkzzfi1hga";
|
||
};
|
||
|
||
checkInputs = [
|
||
pytestCheckHook
|
||
numpy
|
||
];
|
||
|
||
disabledTests = [
|
||
# Test assumes user name is part of $HOME
|
||
# AssertionError: assert 'nixbld' in '/homeless-shelter/foo/bar'
|
||
"test_strip_protocol_expanduser"
|
||
] ++ lib.optionals (stdenv.isDarwin) [
|
||
"test_modified" # fails on hydra, works locally
|
||
"test_touch" # fails on hydra, works locally
|
||
];
|
||
|
||
meta = with lib; {
|
||
description = "A specification that python filesystems should adhere to";
|
||
homepage = "https://github.com/intake/filesystem_spec";
|
||
license = licenses.bsd3;
|
||
maintainers = [ maintainers.costrouc ];
|
||
};
|
||
}
|