nixpkgs/pkgs/development/python-modules/fsspec/default.nix

42 lines
953 B
Nix
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, numpy
, stdenv
, isPy38
}:
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 && isPy38) [
"test_modified" # 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 ];
};
}