depot/third_party/nixpkgs/pkgs/development/python-modules/ossfs/default.nix

57 lines
1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, fsspec
, oss2
, pythonOlder
, setuptools-scm
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "ossfs";
version = "2023.1.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "fsspec";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-5mz1OC+6kDpiLNsMwOp+bdqY2eozMpAekS6h34QiOdo=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
pythonRelaxDeps = [
"fsspec"
"oss2"
];
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools-scm
];
propagatedBuildInputs = [
fsspec
oss2
];
# Most tests require network access
doCheck = false;
pythonImportsCheck = [
"ossfs"
];
meta = with lib; {
description = "Filesystem for Alibaba Cloud (Aliyun) Object Storage System (OSS)";
homepage = "https://github.com/fsspec/ossfs";
changelog = "https://github.com/fsspec/ossfs/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}