From 0952faad43b0d56ab40039d6f21a04e49b8dac97 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Fri, 7 Apr 2023 19:46:13 +0300 Subject: [PATCH 1/3] python3Packages.yasi: init at 2.1.2 --- .../python-modules/yasi/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/yasi/default.nix diff --git a/pkgs/development/python-modules/yasi/default.nix b/pkgs/development/python-modules/yasi/default.nix new file mode 100644 index 000000000000..00eb1937fe8c --- /dev/null +++ b/pkgs/development/python-modules/yasi/default.nix @@ -0,0 +1,36 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 627b11b5ad99..c0f777499fb2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12842,6 +12842,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 { }; From a7b0ca02b97aea2b92c8a0b1b4451c87ac2ebde1 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Fri, 7 Apr 2023 20:00:50 +0300 Subject: [PATCH 2/3] python3Packages.calysto: init at 1.0.6 --- .../python-modules/calysto/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/calysto/default.nix diff --git a/pkgs/development/python-modules/calysto/default.nix b/pkgs/development/python-modules/calysto/default.nix new file mode 100644 index 000000000000..81a10066d29b --- /dev/null +++ b/pkgs/development/python-modules/calysto/default.nix @@ -0,0 +1,37 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c0f777499fb2..f407cac8f27d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1587,6 +1587,8 @@ self: super: with self; { calmjs-parse = callPackage ../development/python-modules/calmjs-parse { }; + calysto = callPackage ../development/python-modules/calysto { }; + camel-converter = callPackage ../development/python-modules/camel-converter { }; can = callPackage ../development/python-modules/can { }; From 0ccf77ddcda8d00a3ecba75cf58e3d7cd1d3e6aa Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Fri, 7 Apr 2023 20:14:56 +0300 Subject: [PATCH 3/3] python3Packages.calysto-scheme: init at 1.4.7 --- .../python-modules/calysto-scheme/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/calysto-scheme/default.nix diff --git a/pkgs/development/python-modules/calysto-scheme/default.nix b/pkgs/development/python-modules/calysto-scheme/default.nix new file mode 100644 index 000000000000..a61c2ec18ff2 --- /dev/null +++ b/pkgs/development/python-modules/calysto-scheme/default.nix @@ -0,0 +1,32 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f407cac8f27d..91ad3ac0646e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1589,6 +1589,8 @@ self: super: with self; { 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 { };