Commit 77306d37 authored by Robert Schütz's avatar Robert Schütz
Browse files

python310Packages.nbformat: 5.5.0 -> 5.7.0

parent 45ab6cf9
Loading
Loading
Loading
Loading
+18 −20
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, hatchling
, hatch-nodejs-version
, fastjsonschema
, flit-core
, pytestCheckHook
, glibcLocales
, ipython_genutils
, traitlets
, testpath
, jsonschema
, jupyter_core
, traitlets
, pep440
, pytestCheckHook
, testpath
}:

buildPythonPackage rec {
  pname = "nbformat";
  version = "5.5.0";
  version = "5.7.0";

  disabled = pythonOlder "3.7";

  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-nr4w5sOz5bR9Of8KOJehrPUj0r+vy04tBM23D4pmxQc=";
    sha256 = "1d4760c15c1a04269ef5caf375be8b98dd2f696e5eb9e603ec2bf091f9b0d3f3";
  };

  nativeBuildInputs = [
    flit-core
    hatchling
    hatch-nodejs-version
  ];

  LC_ALL="en_US.utf8";

  propagatedBuildInputs = [
    fastjsonschema
    ipython_genutils
    jsonschema
    jupyter_core
    pep440
    testpath
    traitlets
  ];

  checkInputs = [ pytestCheckHook glibcLocales ];

  preCheck = ''
    mkdir tmp
    export HOME=tmp
  '';
  checkInputs = [
    pep440
    pytestCheckHook
    testpath
  ];

  # Some of the tests use localhost networking.
  __darwinAllowLocalNetworking = true;