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

Merge pull request #332158 from berquist/add-python-numpy-groupies

python3Packages.numpy-groupies: init at 0.11.2
parents 619d29bb e320b6a3
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2544,6 +2544,13 @@
    githubId = 410028;
    name = "Tobias Bergkvist";
  };
  berquist = {
    name = "Eric Berquist";
    email = "eric.berquist@gmail.com";
    github = "berquist";
    githubId = 727571;
    keys = [ { fingerprint = "AAD4 3B70 A504 9675 CFC8  B101 BAFD 205D 5FA2 B329"; } ];
  };
  berryp = {
    email = "berryphillips@gmail.com";
    github = "berryp";
+50 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
  setuptools-scm,
  numpy,
  numba,
  pandas,
  gitUpdater,
}:

buildPythonPackage rec {
  pname = "numpy-groupies";
  version = "0.11.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ml31415";
    repo = "numpy-groupies";
    rev = "refs/tags/v${version}";
    hash = "sha256-Eu+5SR28jIasKe1p7rvbq2yo3PGZRQWWdG3A5vGhnyM=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [ numpy ];

  nativeCheckInputs = [
    pytestCheckHook
    numba
    pandas
  ];

  pythonImportsCheck = [ "numpy_groupies" ];

  passthru.updateScript = gitUpdater { tagPrefix = "v"; };

  meta = with lib; {
    homepage = "https://github.com/ml31415/numpy-groupies";
    changelog = "https://github.com/ml31415/numpy-groupies/releases/tag/v${version}";
    description = "Optimised tools for group-indexing operations: aggregated sum and more";
    license = licenses.bsd2;
    maintainers = [ maintainers.berquist ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -9251,6 +9251,8 @@ self: super: with self; {
  numpy_2 = callPackage ../development/python-modules/numpy/2.nix { };
  numpy = if self.pythonOlder "3.13" then numpy_1 else numpy_2;
  numpy-groupies = callPackage ../development/python-modules/numpy-groupies { };
  numpy-stl = callPackage ../development/python-modules/numpy-stl { };
  numpyro = callPackage ../development/python-modules/numpyro { };