depot/third_party/nixpkgs/pkgs/development/python-modules/dvc-render/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

63 lines
1.1 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.9";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "iterative";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-ZUIyNg+PTj5CWC65RqB1whnB+pUp1yNJQj43iSBcyvU=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
passthru.optional-dependencies = {
table = [
tabulate
];
markdown = [
tabulate
matplotlib
];
};
checkInputs = [
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";
license = licenses.asl20;
maintainers = with maintainers; [ fab anthonyroussel ];
};
}