depot/third_party/nixpkgs/pkgs/development/python-modules/nbconflux/default.nix
Default email 6ae7ad3cc5 Project import generated by Copybara.
GitOrigin-RevId: a322b32e9d74fb476944ff6cfb55833dc69cfaaa
2020-11-19 01:13:47 +01:00

29 lines
817 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy27, nbconvert, pytest, requests, responses }:
buildPythonPackage rec {
pname = "nbconflux";
version = "0.7.0";
disabled = isPy27; # no longer compatible with python 2 urllib
src = fetchFromGitHub {
owner = "Valassis-Digital-Media";
repo = "nbconflux";
rev = version;
sha256 = "1708qkb275d6f7b4b5zmqx3i0jh56nrx2n9rwwp5nbaah5p2wwlh";
};
propagatedBuildInputs = [ nbconvert requests ];
checkInputs = [ pytest responses ];
checkPhase = ''
pytest tests
'';
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 ];
};
}