depot/third_party/nixpkgs/pkgs/development/python-modules/pint-pandas/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

49 lines
858 B
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, setuptools-scm
, wheel
, pint
, pandas
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pint-pandas";
version = "0.4";
format = "pyproject";
src = fetchFromGitHub {
owner = "hgrecco";
repo = "pint-pandas";
rev = version;
hash = "sha256-FuH6wksSCkkL2AyQN46hwTnfeAZFwkWRl6KEEhsxmUY=";
};
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
propagatedBuildInputs = [
pint
pandas
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
broken = stdenv.isDarwin;
description = "Pandas support for pint";
license = licenses.bsd3;
homepage = "https://github.com/hgrecco/pint-pandas";
maintainers = with maintainers; [ doronbehar ];
};
}