about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pint-pandas/default.nix
blob: 3e7f1836626687171ae98024bc402c82f2f9863c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  stdenv,
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  setuptools,
  setuptools-scm,
  wheel,
  pint,
  pandas,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pint-pandas";
  version = "0.6";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "hgrecco";
    repo = "pint-pandas";
    rev = "refs/tags/${version}";
    hash = "sha256-5/Qk6HZlfeKkfSqnVA8aADjJ99SUiurYCqSIUBPFIzc=";
  };

  build-system = [
    setuptools
    setuptools-scm
    wheel
  ];

  dependencies = [
    pint
    pandas
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    broken = stdenv.isDarwin;
    description = "Pandas support for pint";
    license = lib.licenses.bsd3;
    homepage = "https://github.com/hgrecco/pint-pandas";
    maintainers = with lib.maintainers; [ doronbehar ];
  };
}