2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fsspec,
|
|
|
|
funcy,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
reflink,
|
|
|
|
setuptools-scm,
|
|
|
|
shortuuid,
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvc-objects";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "5.1.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iterative";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "dvc-objects";
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-CXZKya22i2PhHk/CYd10AlzkiOBo5xZfR9l4rnkaV5Y=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace " --benchmark-skip" ""
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ fsspec ] ++ lib.optionals (pythonOlder "3.12") [ funcy ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-01-13 08:15:51 +00:00
|
|
|
pytest-asyncio
|
2022-07-14 12:49:19 +00:00
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
2024-01-02 11:29:13 +00:00
|
|
|
reflink
|
2024-01-13 08:15:51 +00:00
|
|
|
shortuuid
|
2022-07-14 12:49:19 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dvc_objects" ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Disable benchmarking
|
|
|
|
"tests/benchmarks/"
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for DVC objects";
|
|
|
|
homepage = "https://github.com/iterative/dvc-objects";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/iterative/dvc-objects/releases/tag/${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|