Files
nixpkgs/pkgs/development/python-modules/fast-histogram/default.nix
T
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

54 lines
1017 B
Nix

{ lib
, buildPythonPackage
, pytestCheckHook
, fetchFromGitHub
, python
, pythonOlder
, setuptools
, setuptools-scm
, numpy
, wheel
, hypothesis
, pytest-cov
}:
buildPythonPackage rec {
pname = "fast-histogram";
version = "0.12";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "astrofrog";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Cz4BgbtxbUPxL2NSzvZYjbYIN4KUuliUV0bXRRtyvfM=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
propagatedBuildInputs = [ numpy ];
nativeCheckInputs = [
pytestCheckHook
hypothesis
pytest-cov
];
pytestFlagsArray = [ "${builtins.placeholder "out"}/${python.sitePackages}" ];
pythonImportsCheck = [ "fast_histogram" ];
meta = with lib; {
homepage = "https://github.com/astrofrog/fast-histogram";
description = "Fast 1D and 2D histogram functions in Python";
license = licenses.bsd2;
maintainers = with maintainers; [ ifurther ];
};
}