1{
2 stdenv,
3 lib,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7 setuptools,
8 setuptools-scm,
9 wheel,
10 pint,
11 pandas,
12 pytestCheckHook,
13}:
14
15buildPythonPackage rec {
16 pname = "pint-pandas";
17 version = "0.6";
18 pyproject = true;
19
20 disabled = pythonOlder "3.9";
21
22 src = fetchFromGitHub {
23 owner = "hgrecco";
24 repo = "pint-pandas";
25 rev = "refs/tags/${version}";
26 hash = "sha256-5/Qk6HZlfeKkfSqnVA8aADjJ99SUiurYCqSIUBPFIzc=";
27 };
28
29 build-system = [
30 setuptools
31 setuptools-scm
32 wheel
33 ];
34
35 dependencies = [
36 pint
37 pandas
38 ];
39
40 nativeCheckInputs = [ pytestCheckHook ];
41
42 meta = {
43 broken = stdenv.hostPlatform.isDarwin;
44 description = "Pandas support for pint";
45 license = lib.licenses.bsd3;
46 homepage = "https://github.com/hgrecco/pint-pandas";
47 maintainers = with lib.maintainers; [ doronbehar ];
48 };
49}