2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, dictdiffer
|
|
|
|
, diskcache
|
|
|
|
, dvc-objects
|
|
|
|
, fetchFromGitHub
|
|
|
|
, funcy
|
|
|
|
, nanotime
|
|
|
|
, pygtrie
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools-scm
|
2023-02-02 18:25:31 +00:00
|
|
|
, shortuuid
|
|
|
|
, sqltrie
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvc-data";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.36.2";
|
2022-07-14 12:49:19 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iterative";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-HKNltc5pWc0mU+yCj/PV9E6GYQ+3fbcacRRXtquGM4w=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dictdiffer
|
|
|
|
diskcache
|
|
|
|
dvc-objects
|
|
|
|
funcy
|
|
|
|
nanotime
|
|
|
|
pygtrie
|
|
|
|
shortuuid
|
2023-02-02 18:25:31 +00:00
|
|
|
sqltrie
|
2022-07-14 12:49:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests depend on upath which is unmaintained and only available as wheel
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "dvc-objects==" "dvc-objects>="
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dvc_data"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "DVC's data management subsystem";
|
|
|
|
homepage = "https://github.com/iterative/dvc-data";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/iterative/dvc-data/releases/tag/${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|