63 lines
1,022 B
Nix
63 lines
1,022 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flatten-dict
|
|
, fsspec
|
|
, funcy
|
|
, pygtrie
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
, shortuuid
|
|
, tqdm
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dvc-objects";
|
|
version = "0.0.18";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iterative";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-mkL+E+PQqm+L7ejccJ0FFpXmIsi26KzfBnzlSuaC3ds=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
flatten-dict
|
|
fsspec
|
|
funcy
|
|
pygtrie
|
|
shortuuid
|
|
tqdm
|
|
typing-extensions
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"dvc_objects"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for DVC objects";
|
|
homepage = "https://github.com/iterative/dvc-objects";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|