mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
abdf5dc772
It is is now provided automatically, when `pythonRelaxDeps` or `pythonRemoveDeps` is defined through `mk-python-derivation`.
54 lines
1,006 B
Nix
54 lines
1,006 B
Nix
{
|
|
lib,
|
|
aiooss2,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fsspec,
|
|
oss2,
|
|
pythonOlder,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ossfs";
|
|
version = "2023.12.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fsspec";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-N1NkpI8inGJCf0xuc+FFmVX85CS7vqzoNddxZ9kqEk0=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"aiooss2"
|
|
"fsspec"
|
|
"oss2"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|