depot/third_party/nixpkgs/pkgs/development/python-modules/dvc-objects/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

63 lines
1.1 KiB
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.24.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "iterative";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-DpRnbvGF6HOCAcQ7HRf9x1bzrHHnL95Fz/TzpCosRZo=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
flatten-dict
fsspec
funcy
pygtrie
shortuuid
tqdm
typing-extensions
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [
"dvc_objects"
];
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 ];
};
}