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