Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 61 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchFromGitHub, 6 flatten-dict, 7 funcy, 8 matplotlib, 9 tabulate, 10 pytestCheckHook, 11 pytest-mock, 12 pytest-test-utils, 13 setuptools-scm, 14}: 15 16buildPythonPackage rec { 17 pname = "dvc-render"; 18 version = "1.0.2"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "iterative"; 23 repo = "dvc-render"; 24 tag = version; 25 hash = "sha256-V4QVZu4PSOW9poT6YUWbgTjJpIJ8YUtGDAE4Ijgm5Ac="; 26 }; 27 28 build-system = [ setuptools-scm ]; 29 30 optional-dependencies = { 31 table = [ 32 flatten-dict 33 tabulate 34 ]; 35 markdown = [ 36 tabulate 37 matplotlib 38 ]; 39 }; 40 41 nativeCheckInputs = [ 42 funcy 43 pytestCheckHook 44 pytest-mock 45 pytest-test-utils 46 ] 47 ++ optional-dependencies.table 48 ++ optional-dependencies.markdown; 49 50 disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_vega.py" ]; 51 52 pythonImportsCheck = [ "dvc_render" ]; 53 54 meta = { 55 description = "Library for rendering DVC plots"; 56 homepage = "https://github.com/iterative/dvc-render"; 57 changelog = "https://github.com/iterative/dvc-render/releases/tag/${version}"; 58 license = lib.licenses.asl20; 59 maintainers = with lib.maintainers; [ fab ]; 60 }; 61}