2022-05-27 20:22:04 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, funcy
|
2022-07-16 11:59:05 +01:00
|
|
|
, matplotlib
|
|
|
|
, tabulate
|
2022-05-27 20:22:04 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-test-utils
|
|
|
|
, pythonOlder
|
2022-07-04 19:02:28 +01:00
|
|
|
, setuptools-scm
|
2022-05-27 20:22:04 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvc-render";
|
2022-08-06 21:48:55 +01:00
|
|
|
version = "0.0.9";
|
2022-05-27 20:22:04 +01:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iterative";
|
|
|
|
repo = pname;
|
2022-06-13 15:54:10 +01:00
|
|
|
rev = "refs/tags/${version}";
|
2022-08-06 21:48:55 +01:00
|
|
|
hash = "sha256-ZUIyNg+PTj5CWC65RqB1whnB+pUp1yNJQj43iSBcyvU=";
|
2022-05-27 20:22:04 +01:00
|
|
|
};
|
|
|
|
|
2022-07-04 19:02:28 +01:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2022-07-16 11:59:05 +01:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
table = [
|
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
markdown = [
|
|
|
|
tabulate
|
|
|
|
matplotlib
|
|
|
|
];
|
|
|
|
};
|
2022-05-27 20:22:04 +01:00
|
|
|
|
|
|
|
checkInputs = [
|
2022-07-16 11:59:05 +01:00
|
|
|
funcy
|
2022-05-27 20:22:04 +01:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
pytest-test-utils
|
2022-07-16 11:59:05 +01:00
|
|
|
]
|
|
|
|
++ passthru.optional-dependencies.table
|
|
|
|
++ passthru.optional-dependencies.markdown;
|
2022-05-27 20:22:04 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dvc_render"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for rendering DVC plots";
|
2022-07-16 11:59:05 +01:00
|
|
|
homepage = "https://github.com/iterative/dvc-render";
|
2022-05-27 20:22:04 +01:00
|
|
|
license = licenses.asl20;
|
2022-08-06 21:48:55 +01:00
|
|
|
maintainers = with maintainers; [ fab anthonyroussel ];
|
2022-05-27 20:22:04 +01:00
|
|
|
};
|
|
|
|
}
|