mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / development / python-modules / fast-histogram / default.nix
blob3a3ada743a4ebb93244901902ce69738ea7216ab
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-stub,
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-stub
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   };