Files
nixpkgs/pkgs/development/python-modules/jupyter-contrib-core/default.nix
T
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

42 lines
906 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, jupyter-core
, notebook
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "jupyter-contrib-core";
version = "0.4.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "jupyter-contrib";
repo = "jupyter_contrib_core";
rev = "refs/tags/${version}";
hash = "sha256-UTtK+aKxBFkqKuHrt1ox8vdHyFz/9HiKFl7U4UQcG88=";
};
propagatedBuildInputs = [
jupyter-core
notebook
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# This test fails upstream too
"tests/test_application.py"
];
pythonImportsCheck = [ "jupyter_contrib_core" ];
meta = with lib; {
description = "Common utilities for jupyter-contrib projects";
homepage = "https://github.com/jupyter-contrib/jupyter_contrib_core";
license = licenses.bsd3;
maintainers = with maintainers; [ GaetanLepage ];
};
}