biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / fast-histogram / default.nix
blobd0621c1b539ef2334952be6c635fefe3c9566f00
2   lib,
3   buildPythonPackage,
4   pytestCheckHook,
5   fetchFromGitHub,
6   python,
7   pythonOlder,
8   setuptools,
9   setuptools-scm,
10   numpy,
11   wheel,
12   hypothesis,
13   pytest-cov,
16 buildPythonPackage rec {
17   pname = "fast-histogram";
18   version = "0.14";
19   format = "setuptools";
21   disabled = pythonOlder "3.6";
23   src = fetchFromGitHub {
24     owner = "astrofrog";
25     repo = pname;
26     rev = "refs/tags/v${version}";
27     sha256 = "sha256-vIzDDzz6e7PXArHdZdSSgShuTjy3niVdGtXqgmyJl1w=";
28   };
30   nativeBuildInputs = [
31     setuptools
32     setuptools-scm
33     wheel
34   ];
36   propagatedBuildInputs = [ numpy ];
38   nativeCheckInputs = [
39     pytestCheckHook
40     hypothesis
41     pytest-cov
42   ];
44   pytestFlagsArray = [ "${builtins.placeholder "out"}/${python.sitePackages}" ];
46   pythonImportsCheck = [ "fast_histogram" ];
48   meta = with lib; {
49     homepage = "https://github.com/astrofrog/fast-histogram";
50     description = "Fast 1D and 2D histogram functions in Python";
51     license = licenses.bsd2;
52     maintainers = with maintainers; [ ifurther ];
53   };