nixpkgs/pkgs/development/python-modules/pint-pandas/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

48 lines
809 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=";
};
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 ];
};
}