a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, funcy
|
|
, matplotlib
|
|
, tabulate
|
|
, pytestCheckHook
|
|
, pytest-mock
|
|
, pytest-test-utils
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dvc-render";
|
|
version = "0.0.17";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iterative";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-GDfrkcKP/EZZ/ONZ2Afoxj4Q8sp8mRmtZf93kXcNQcg=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
table = [
|
|
tabulate
|
|
];
|
|
markdown = [
|
|
tabulate
|
|
matplotlib
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
funcy
|
|
pytestCheckHook
|
|
pytest-mock
|
|
pytest-test-utils
|
|
]
|
|
++ passthru.optional-dependencies.table
|
|
++ passthru.optional-dependencies.markdown;
|
|
|
|
pythonImportsCheck = [
|
|
"dvc_render"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for rendering DVC plots";
|
|
homepage = "https://github.com/iterative/dvc-render";
|
|
changelog = "https://github.com/iterative/dvc-render/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|