Unverified Commit a5826fe6 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #193990 from swflint/add-lifelines

python310Packages.lifelines: init at 0.27.4
parents a1430473 1ed35fd2
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, autograd, scipy }:

buildPythonPackage rec {
  pname = "autograd-gamma";
  version = "0.4.3";

  src = fetchFromGitHub {
    owner = "CamDavidsonPilon";
    repo = "autograd-gamma";
    rev = "v${version}";
    sha256 = "0v03gly5k3a1hzb54zpw6409m3riak49qd27hkq2f66ai42ivqz2";
  };

  propagatedBuildInputs = [
    autograd
    scipy
  ];

  pythonImportsCheck = [ "autograd_gamma" ];

  checkInputs = [ pytestCheckHook ];

  meta = {
    homepage = "https://github.com/CamDavidsonPilon/autograd-gamma";
    description = "Autograd compatible approximations to the gamma family of functions";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ swflint ];
  };
}
+63 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, hatchling
, hatch-vcs
, git
, astor
, interface-meta
, numpy
, pandas
, scipy
, sympy
, wrapt
, typing-extensions
}:

buildPythonPackage rec {
  pname = "formulaic";
  version = "0.5.2";

  format = "pyproject";

  src = fetchFromGitHub {
    owner = "matthewwardrop";
    repo = "formulaic";
    rev = "v${version}";
    sha256 = "sha256-sIvHTuUS/nkcDjRgZCoEOY2negIOsarzH0PeXJsavWc=";
  };

  SETUPTOOLS_SCM_PRETEND_VERSION = version;

  nativeBuildInputs = [
    hatchling
    hatch-vcs
  ];

  propagatedBuildInputs = [
    astor
    numpy
    pandas
    scipy
    wrapt
    typing-extensions
    interface-meta
    sympy
  ];

  pythonImportsCheck = [ "formulaic" ];

  checkInputs = [ pytestCheckHook ];

  disabledTestPaths = [
    "tests/transforms/test_poly.py"
  ];

  meta = {
    homepage = "https://matthewwardrop.github.io/formulaic/";
    description = "High-performance implementation of Wilkinson formulas for";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ swflint ];
  };
}
+36 −0
Original line number Diff line number Diff line
From 581102ae94a7e6dfd3ad3fa5371068189b9e7c44 Mon Sep 17 00:00:00 2001
From: "Samuel W. Flint" <swflint@flintfam.org>
Date: Thu, 27 Oct 2022 12:42:07 -0500
Subject: [PATCH] fix-versions

---
 interface_meta/_version.py | 2 +-
 pyproject.toml             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/interface_meta/_version.py b/interface_meta/_version.py
index 3d50665..b3d3818 100644
--- a/interface_meta/_version.py
+++ b/interface_meta/_version.py
@@ -1,5 +1,5 @@
 __author__ = "Matthew Wardrop"
 __author_email__ = "mpwardrop@gmail.com"
-__version__ = "0.0.0"
+__version__ = "1.3.0"
 
 __dependencies__ = []
diff --git a/pyproject.toml b/pyproject.toml
index 43dab27..e543549 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "interface_meta"
-version = "0.0.0"
+version = "1.3.0"
 description = "`interface_meta` provides a convenient way to expose an extensible API with enforced method signatures and consistent documentation."
 authors = ["Matthew Wardrop <mpwardrop@gmail.com>"]
 license = "MIT"
-- 
2.37.0
+38 −0
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, poetry-core, poetry-dynamic-versioning }:

buildPythonPackage rec {
  pname = "interface-meta";
  version = "1.3.0";

  format = "pyproject";

  src = fetchFromGitHub {
    owner = "matthewwardrop";
    repo = "interface_meta";
    rev = "v${version}";
    sha256 = "0rzh11wnab33b11391vc2ynf8ncxn22b12wn46lmgkrc5mqza8hd";
  };

  patches = [
    ./0001-fix-version.patch
  ];

  nativeBuildInputs = [
    poetry-core
  ];

  propogatedBuildInputs = [
    poetry-dynamic-versioning
  ];

  pythonImportsCheck = [ "interface_meta" ];

  checkInputs = [ pytestCheckHook ];

  meta = {
    homepage = "https://github.com/matthewwardrop/interface_meta";
    description = "Convenient way to expose an extensible API with enforced method signatures and consistent documentation";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ swflint ];
  };
}
+63 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, numpy
, scipy
, pandas
, matplotlib
, autograd
, autograd-gamma
, formulaic
, scikit-learn
, sybil
, flaky
, jinja2
, dill
, psutil
}:

buildPythonPackage rec {
  pname = "lifelines";
  version = "0.27.4";

  src = fetchFromGitHub {
    owner = "CamDavidsonPilon";
    repo = "lifelines";
    rev = "v${version}";
    sha256 = "sha256-KDoXplqkTsk85dmcTBhbj2GDcC4ry+2z5C2QHAnBTw4=";
  };

  propagatedBuildInputs = [
    numpy
    scipy
    pandas
    matplotlib
    autograd
    autograd-gamma
    formulaic
  ];

  pythonImportsCheck = [ "lifelines" ];

  checkInputs = [
    dill
    flaky
    jinja2
    psutil
    pytestCheckHook
    scikit-learn
    sybil
  ];

  disabledTestPaths = [
    "lifelines/tests/test_estimation.py"
  ];

  meta = {
    homepage = "https://lifelines.readthedocs.io";
    description = "Survival analysis in Python";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ swflint ];
  };
}
Loading