2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-03-30 09:31:56 +00:00
|
|
|
, buildPythonPackage
|
2023-03-04 12:14:45 +00:00
|
|
|
, fetchFromGitHub
|
2022-03-30 09:31:56 +00:00
|
|
|
, fetchpatch
|
2023-03-04 12:14:45 +00:00
|
|
|
, setuptools
|
2022-03-30 09:31:56 +00:00
|
|
|
, pint
|
|
|
|
, pandas
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
buildPythonPackage {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "pint-pandas";
|
2023-03-04 12:14:45 +00:00
|
|
|
# Latest release contains bugs and failing tests.
|
|
|
|
version = "unstable-2022-11-24";
|
|
|
|
format = "pyproject";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hgrecco";
|
|
|
|
repo = "pint-pandas";
|
|
|
|
rev = "c58a7fcf9123eb65f5e78845077b205e20279b9d";
|
|
|
|
hash = "sha256-gMZNJSJxtSZvgU4o71ws5ZA6tgD2M5c5oOrn62DRyMI=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-03-04 12:14:45 +00:00
|
|
|
setuptools
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pint
|
|
|
|
pandas
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
2022-03-30 09:31:56 +00:00
|
|
|
description = "Pandas support for pint";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = "https://github.com/hgrecco/pint-pandas";
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
};
|
|
|
|
}
|