Merge pull request #112056 from rmcgibbo/nbsphinx

This commit is contained in:
Sandro 2021-02-08 17:53:02 +01:00 committed by GitHub
commit 62627500b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 10 deletions

View File

@ -1,4 +1,12 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy27, nbconvert, pytest, requests, responses }: { lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, nbconvert
, pytestCheckHook
, requests
, responses
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "nbconflux"; pname = "nbconflux";
@ -14,11 +22,13 @@ buildPythonPackage rec {
propagatedBuildInputs = [ nbconvert requests ]; propagatedBuildInputs = [ nbconvert requests ];
checkInputs = [ pytest responses ]; checkInputs = [ pytestCheckHook responses ];
checkPhase = '' JUPYTER_PATH="${nbconvert}/share/jupyter";
pytest tests disabledTests = [
''; "test_post_to_confluence"
"test_optional_components"
];
meta = with lib; { meta = with lib; {
description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert"; description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert";

View File

@ -13,11 +13,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "nbsphinx"; pname = "nbsphinx";
version = "0.8.0"; version = "0.8.1";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "369c16fe93af14c878d61fb3e81d838196fb35b27deade2cd7b95efe1fe56ea0"; sha256 = "19lf036h0d9ryqasrh91myhn3dq5zcw4rik9jy6sayq7l6irmm94";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -29,9 +29,13 @@ buildPythonPackage rec {
traitlets traitlets
]; ];
checkPhase = '' # The package has not tests
${python.interpreter} -m nbsphinx doCheck = false;
'';
JUPYTER_PATH = "${nbconvert}/share/jupyter";
pythonImportsCheck = [
"nbsphinx"
];
disabled = !isPy3k; disabled = !isPy3k;