python3Packages.fast-histogram: init at 0.12
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pytestCheckHook
|
||||
, fetchFromGitHub
|
||||
, python
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, numpy
|
||||
, wheel
|
||||
, hypothesis
|
||||
, pytest-cov
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fast-histogram";
|
||||
version = "0.12";
|
||||
|
||||
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}" ];
|
||||
|
||||
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
@@ -3795,6 +3795,8 @@ self: super: with self; {
|
||||
|
||||
fastapi-mail = callPackage ../development/python-modules/fastapi-mail { };
|
||||
|
||||
fast-histogram = callPackage ../development/python-modules/fast-histogram { };
|
||||
|
||||
fastavro = callPackage ../development/python-modules/fastavro { };
|
||||
|
||||
fastbencode = callPackage ../development/python-modules/fastbencode { };
|
||||
|
||||
Reference in New Issue
Block a user