504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, dictdiffer
|
|
, diskcache
|
|
, dvc-objects
|
|
, fetchFromGitHub
|
|
, funcy
|
|
, pygtrie
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
, shortuuid
|
|
, sqltrie
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dvc-data";
|
|
version = "3.5.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iterative";
|
|
repo = "dvc-data";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-vLSb+RIaebF+ili+6bvU8wplcpycPVRadUkhkLHdqi8=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
dictdiffer
|
|
diskcache
|
|
dvc-objects
|
|
funcy
|
|
pygtrie
|
|
shortuuid
|
|
sqltrie
|
|
];
|
|
|
|
# Tests depend on upath which is unmaintained and only available as wheel
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"dvc_data"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "DVC's data management subsystem";
|
|
homepage = "https://github.com/iterative/dvc-data";
|
|
changelog = "https://github.com/iterative/dvc-data/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|