Files
nixpkgs/pkgs/development/python-modules/dvc-objects/default.nix
T

71 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flatten-dict
, fsspec
, funcy
, pygtrie
, pytest-mock
, pytestCheckHook
, pythonOlder
, reflink
, setuptools-scm
, shortuuid
, tqdm
, typing-extensions
}:
buildPythonPackage rec {
pname = "dvc-objects";
version = "1.4.9";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "iterative";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-9fuxlZDy83nl+rnVEFdAza1NHun8PdewgowMl3G5wZU=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
flatten-dict
fsspec
funcy
pygtrie
shortuuid
tqdm
typing-extensions
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
reflink
];
pythonImportsCheck = [
"dvc_objects"
];
disabledTestPaths = [
# Disable benchmarking
"tests/benchmarks/"
];
meta = with lib; {
description = "Library for DVC objects";
homepage = "https://github.com/iterative/dvc-objects";
changelog = "https://github.com/iterative/dvc-objects/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}