Commit a8e98ca3 authored by Doron Behar's avatar Doron Behar
Browse files

python312Packages.pint-xarray: init at 0.4

parent d8db39f5
Loading
Loading
Loading
Loading
+51 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  setuptools-scm,
  numpy,
  pint,
  xarray,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pint-xarray";
  version = "0.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "xarray-contrib";
    repo = "pint-xarray";
    tag = "v${version}";
    hash = "sha256-IFHSgrnqS7ZpNhRzzSgHPRUP90WNv84jBH4um/DRMCU=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [
    numpy
    pint
    xarray
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "pint_xarray"
  ];

  meta = {
    description = "Interface for using pint with xarray, providing convenience accessors";
    homepage = "https://github.com/xarray-contrib/pint-xarray";
    changelog = "https://github.com/xarray-contrib/pint-xarray/blob/v${version}/docs/whats-new.rst";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ doronbehar ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -10451,6 +10451,8 @@ self: super: with self; {
  pint-pandas = callPackage ../development/python-modules/pint-pandas { };
  pint-xarray = callPackage ../development/python-modules/pint-xarray { };
  pip = callPackage ../development/python-modules/pip { };
  pipdate = callPackage ../development/python-modules/pipdate { };