python3.pkgs.pint-pandas: init at 0.2 (#165138)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
3a73633f78
commit
354e855d60
2 changed files with 50 additions and 0 deletions
48
pkgs/development/python-modules/pint-pandas/default.nix
Normal file
48
pkgs/development/python-modules/pint-pandas/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, setuptools-scm
|
||||
, pint
|
||||
, pandas
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pint-pandas";
|
||||
version = "0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Pint-Pandas";
|
||||
inherit version;
|
||||
sha256 = "sha256-b2DS6ArBAuD5St25IG4PbMpe5C8Lf4kw2MeYAC5B+oc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fixes a failing test, see: https://github.com/hgrecco/pint-pandas/issues/107
|
||||
(fetchpatch{
|
||||
url = "https://github.com/hgrecco/pint-pandas/commit/4c31e25609af968665ee60d019b9b5366f328680.patch";
|
||||
sha256 = "vIT0LI4S73D4MBfGI8vtCZAM+Zb4PZ4E3xfpGKNyA4I=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pint
|
||||
pandas
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pandas support for pint";
|
||||
license = licenses.bsd3;
|
||||
homepage = "https://github.com/hgrecco/pint-pandas";
|
||||
maintainers = with maintainers; [ doronbehar ];
|
||||
};
|
||||
}
|
|
@ -6164,6 +6164,8 @@ in {
|
|||
|
||||
pint = callPackage ../development/python-modules/pint { };
|
||||
|
||||
pint-pandas = callPackage ../development/python-modules/pint-pandas { };
|
||||
|
||||
pip = callPackage ../development/python-modules/pip { };
|
||||
|
||||
pipdate = callPackage ../development/python-modules/pipdate { };
|
||||
|
|
Loading…
Reference in a new issue