depot/third_party/nixpkgs/pkgs/development/python-modules/dvc-objects/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00: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.19.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "iterative";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-jwjhRY1SMqiTZ5UJmoZb4odg3g8uC9ehPmxRU2VsH8U=";
};
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 ];
};
}