mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
9bfe6dbee7
Diff: https://github.com/fsspec/ossfs/compare/refs/tags/2023.5.0...2023.8.0 Changelog: https://github.com/fsspec/ossfs/releases/tag/2023.8.0
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, aiooss2
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, fsspec
|
|
, oss2
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ossfs";
|
|
version = "2023.8.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fsspec";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-v6QZgv1QwBrQpCwP/1z6704UNvQyoCrpQGkhTmncbjQ=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
pythonRelaxDeps = [
|
|
"aiooss2"
|
|
"fsspec"
|
|
"oss2"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pythonRelaxDepsHook
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiooss2
|
|
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 ];
|
|
};
|
|
}
|