Unverified Commit e320b6a3 authored by Eric Berquist's avatar Eric Berquist
Browse files

python3Packages.numpy-groupies: init at 0.11.2

parent 46cdf5fb
Loading
Loading
Loading
Loading
+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
@@ -9228,6 +9228,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 { };