Unverified Commit 5b1c1674 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #259132 from mbalatsko/init-esig

python3Packages.esig: init at 0.9.8.3, python3Packages.iisignature: init at 0.24
parents 49dda70d e4e2febd
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, cmake
, ninja
, oldest-supported-numpy
, scikit-build
, setuptools
, numpy
, iisignature
, boost
}:

buildPythonPackage rec {
  pname = "esig";
  version = "0.9.8.3";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-BGZaJSrpNSwZMHBYFDmDVPZOtgam/EVyh5Y5FAB8e1o=";
  };

  buildInputs = [
    boost
  ];

  dontUseCmakeConfigure = true;

  nativeBuildInputs = [
    cmake
    ninja
    oldest-supported-numpy
    scikit-build
    setuptools
  ];

  propagatedBuildInputs = [
    numpy
  ];

  passthru.optional-dependencies = {
    iisignature = [
      iisignature
    ];
  };

  # PyPI tarball has no tests
  doCheck = false;

  pythonImportsCheck = [ "esig" ];

  meta = with lib; {
    description = "This package provides \"rough path\" tools for analysing vector time series";
    homepage = "https://github.com/datasig-ac-uk/esig";
    changelog = "https://github.com/datasig-ac-uk/esig/blob/release/CHANGELOG";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ mbalatsko ];
  };
}
+39 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, wheel
, numpy
}:

buildPythonPackage rec {
  pname = "iisignature";
  version = "0.24";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-C5MUxui4BIf68yMZH7NZhq1CJuhrDGfPCjspObaVucY=";
  };

  nativeBuildInputs = [
    setuptools
    wheel
  ];

  propagatedBuildInputs = [
    numpy
  ];

  # PyPI tarball has no tests
  doCheck = false;

  pythonImportsCheck = [ "iisignature" ];

  meta = with lib; {
    description = "Iterated integral signature calculations";
    homepage = "https://pypi.org/project/iisignature";
    license = licenses.mit;
    maintainers = with maintainers; [ mbalatsko ];
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -3551,6 +3551,8 @@ self: super: with self; {
  es-client = callPackage ../development/python-modules/es-client { };
  esig = callPackage ../development/python-modules/esig { };
  espeak-phonemizer = callPackage ../development/python-modules/espeak-phonemizer { };
  esphome-dashboard-api = callPackage ../development/python-modules/esphome-dashboard-api { };
@@ -5204,6 +5206,8 @@ self: super: with self; {
    inherit (pkgs) igraph;
  };
  iisignature = callPackage ../development/python-modules/iisignature { };
  ijson = callPackage ../development/python-modules/ijson { };
  ilua = callPackage ../development/python-modules/ilua { };