2021-02-05 17:35:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
, nbconvert
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
, responses
|
|
|
|
}:
|
2020-01-22 14:47:54 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbconflux";
|
|
|
|
version = "0.7.0";
|
2020-11-05 23:37:26 +00:00
|
|
|
disabled = isPy27; # no longer compatible with python 2 urllib
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2020-01-22 14:47:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Valassis-Digital-Media";
|
|
|
|
repo = "nbconflux";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1708qkb275d6f7b4b5zmqx3i0jh56nrx2n9rwwp5nbaah5p2wwlh";
|
|
|
|
};
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2020-01-22 14:47:54 +00:00
|
|
|
propagatedBuildInputs = [ nbconvert requests ];
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2021-02-05 17:35:23 +00:00
|
|
|
checkInputs = [ pytestCheckHook responses ];
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2021-02-05 17:35:23 +00:00
|
|
|
JUPYTER_PATH="${nbconvert}/share/jupyter";
|
|
|
|
disabledTests = [
|
|
|
|
"test_post_to_confluence"
|
|
|
|
"test_optional_components"
|
|
|
|
];
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2020-01-22 14:47:54 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert";
|
|
|
|
homepage = "https://github.com/Valassis-Digital-Media/nbconflux";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.arnoldfarkas ];
|
|
|
|
};
|
|
|
|
}
|