Unverified Commit a6ab4bfa authored by Ilan Joselevich's avatar Ilan Joselevich Committed by GitHub
Browse files

Merge pull request #225187 from Kranzes/calysto-scheme

python3Packages.calysto-scheme: init at 1.4.7
parents 2d82b295 0ccf77dd
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonPackage rec {
  pname = "calysto-scheme";
  version = "1.4.7";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "Calysto";
    repo = "calysto_scheme";
    rev = "v${version}";
    hash = "sha256-5InImTbucggjf/tl8K31ZtLrwu5hqvggl7sYb0eqIEg=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    yasi
    metakernel
  ];

  pythonImportsCheck = [ "calysto_scheme" ];

  meta = with lib; {
    description = "A Scheme kernel for Jupyter that can use Python libraries";
    homepage = "https://github.com/Calysto/calysto_scheme";
    changelog = "https://github.com/Calysto/calysto_scheme/blob/${src.rev}/ChangeLog.md";
    license = licenses.bsd3;
    maintainers = with maintainers; [ kranzes ];
  };
}
+37 −0
Original line number Diff line number Diff line
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonPackage rec {
  pname = "calysto";
  version = "1.0.6";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "Calysto";
    repo = "calysto";
    rev = "v${version}";
    hash = "sha256-lr/cHFshpFs/PGMCsa3FKMRPTP+eE9ziH5XCpV+KzO8=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    metakernel
    svgwrite
    ipywidgets
    cairosvg
    numpy
  ];

  # Tests are failing not because of Nix.
  doCheck = false;

  pythonImportsCheck = [ "calysto" ];

  meta = with lib; {
    description = "Tools for Jupyter and Python";
    homepage = "https://github.com/Calysto/calysto";
    license = licenses.bsd2;
    maintainers = with maintainers; [ kranzes ];
  };
}
+36 −0
Original line number Diff line number Diff line
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "yasi";
  version = "2.1.2";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "nkmathew";
    repo = "yasi-sexp-indenter";
    rev = "v${version}";
    hash = "sha256-xKhVTmh/vrtBkatxtk8R4yqbGroH0I+xTKNYUpuikt4=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    colorama
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "test.test_yasi" "tests.test_yasi"
  '';

  pythonImportsCheck = [ "yasi" ];

  meta = with lib; {
    description = "A dialect-aware s-expression indenter written in Python and newLISP";
    homepage = "https://github.com/nkmathew/yasi-sexp-indenter";
    changelog = "https://github.com/nkmathew/yasi-sexp-indenter/blob/${src.rev}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ kranzes ];
  };
}
+6 −0
Original line number Diff line number Diff line
@@ -1587,6 +1587,10 @@ self: super: with self; {

  calmjs-parse = callPackage ../development/python-modules/calmjs-parse { };

  calysto = callPackage ../development/python-modules/calysto { };

  calysto-scheme = callPackage ../development/python-modules/calysto-scheme { };

  camel-converter = callPackage ../development/python-modules/camel-converter { };

  can = callPackage ../development/python-modules/can { };
@@ -12842,6 +12846,8 @@ self: super: with self; {

  yarl = callPackage ../development/python-modules/yarl { };

  yasi = toPythonModule (callPackage ../development/python-modules/yasi { });

  yaspin = callPackage ../development/python-modules/yaspin { };

  yaswfp = callPackage ../development/python-modules/yaswfp { };