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