Files
nixpkgs/pkgs/development/python-modules/aiooss2/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

70 lines
1.2 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
oss2,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "aiooss2";
version = "0.2.11";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "karajan1001";
repo = "aiooss2";
tag = version;
hash = "sha256-6tkJG6Jjvo2OaN9cRbs/7ApcrKiZ5tGSPUfugAx7iJU=";
};
pythonRelaxDeps = [
"aiohttp"
"oss2"
];
build-system = [
setuptools
setuptools-scm
];
dependencies = [
aiohttp
oss2
];
nativeCheckInputs = [
pytest-mock
pytest-asyncio
pytestCheckHook
requests
];
pythonImportsCheck = [ "aiooss2" ];
disabledTestPaths = [
# Tests require network access
"tests/func/test_bucket.py"
"tests/func/test_object.py"
"tests/func/test_resumable.py"
"tests/unit/test_adapter.py"
];
meta = with lib; {
description = "Library for aliyun OSS (Object Storage Service)";
homepage = "https://github.com/karajan1001/aiooss2";
changelog = "https://github.com/karajan1001/aiooss2/blob/${version}/CHANGES.txt";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}