2022-08-13 10:52:40 +02:00
|
|
|
{ lib
|
|
|
|
, aiohttp-retry
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-03-14 01:01:42 +01:00
|
|
|
, dvc-objects
|
2022-08-13 10:52:40 +02:00
|
|
|
, fsspec
|
2024-03-21 21:58:04 +01:00
|
|
|
, funcy
|
2022-08-13 10:52:40 +02:00
|
|
|
, pythonOlder
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvc-http";
|
2023-12-18 07:33:03 +01:00
|
|
|
version = "2.32.0";
|
2024-03-21 21:59:06 +01:00
|
|
|
pyproject = true;
|
2022-08-13 10:52:40 +02:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iterative";
|
2024-03-21 21:59:06 +01:00
|
|
|
repo = "dvc-http";
|
2023-03-14 01:01:42 +01:00
|
|
|
rev = "refs/tags/${version}";
|
2023-12-18 07:33:03 +01:00
|
|
|
hash = "sha256-ru/hOFv/RcS/7SBpTJU8xFxdllmaiH4dV1ouS6GGKkY=";
|
2022-08-13 10:52:40 +02:00
|
|
|
};
|
|
|
|
|
2024-03-21 21:59:06 +01:00
|
|
|
build-system = [
|
2022-08-13 10:52:40 +02:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-03-21 21:59:06 +01:00
|
|
|
dependencies = [
|
2024-03-21 21:58:04 +01:00
|
|
|
aiohttp-retry
|
2023-03-14 01:01:42 +01:00
|
|
|
dvc-objects
|
2022-08-13 10:52:40 +02:00
|
|
|
fsspec
|
2024-03-21 21:58:04 +01:00
|
|
|
funcy
|
2022-08-13 10:52:40 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
# Currently it's not possible to run the tests
|
|
|
|
# ModuleNotFoundError: No module named 'dvc.testing'
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dvc_http"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "HTTP plugin for dvc";
|
|
|
|
homepage = "https://github.com/iterative/dvc-http";
|
2023-03-14 01:01:42 +01:00
|
|
|
changelog = "https://github.com/iterative/dvc-http/releases/tag/${version}";
|
2022-08-13 10:52:40 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|