2022-07-04 19:55:57 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fsspec,
|
|
|
|
funcy,
|
2024-01-03 11:40:29 +01:00
|
|
|
pytest-asyncio,
|
2022-07-04 19:55:57 +02:00
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2023-12-07 15:44:55 +01:00
|
|
|
reflink,
|
2022-07-04 19:55:57 +02:00
|
|
|
setuptools-scm,
|
|
|
|
shortuuid,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvc-objects";
|
2024-03-08 02:40:01 +01:00
|
|
|
version = "5.1.0";
|
2023-12-13 23:46:26 +01:00
|
|
|
pyproject = true;
|
2022-07-04 19:55:57 +02:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iterative";
|
2023-12-13 23:46:26 +01:00
|
|
|
repo = "dvc-objects";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = version;
|
2024-03-08 02:40:01 +01:00
|
|
|
hash = "sha256-CXZKya22i2PhHk/CYd10AlzkiOBo5xZfR9l4rnkaV5Y=";
|
2022-07-04 19:55:57 +02:00
|
|
|
};
|
|
|
|
|
2023-12-13 23:46:26 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace " --benchmark-skip" ""
|
|
|
|
'';
|
|
|
|
|
2022-07-04 19:55:57 +02:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
|
2024-01-11 21:16:47 +01:00
|
|
|
propagatedBuildInputs = [ fsspec ] ++ lib.optionals (pythonOlder "3.12") [ funcy ];
|
2022-07-04 19:55:57 +02:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2024-01-03 11:40:29 +01:00
|
|
|
pytest-asyncio
|
2022-07-04 19:55:57 +02:00
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
2023-12-07 15:44:55 +01:00
|
|
|
reflink
|
2024-01-11 21:16:47 +01:00
|
|
|
shortuuid
|
2022-07-04 19:55:57 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "dvc_objects" ];
|
|
|
|
|
2023-12-07 15:44:55 +01:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Disable benchmarking
|
|
|
|
"tests/benchmarks/"
|
|
|
|
];
|
|
|
|
|
2022-07-04 19:55:57 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for DVC objects";
|
|
|
|
homepage = "https://github.com/iterative/dvc-objects";
|
2023-01-22 17:25:02 +01:00
|
|
|
changelog = "https://github.com/iterative/dvc-objects/releases/tag/${version}";
|
2022-07-04 19:55:57 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|