Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / fast-histogram / default.nix
blob229e448ea704f22ada060837618b0602f2135183
1 { lib
2 , buildPythonPackage
3 , pytestCheckHook
4 , fetchFromGitHub
5 , python
6 , pythonOlder
7 , setuptools
8 , setuptools-scm
9 , numpy
10 , wheel
11 , hypothesis
12 , pytest-cov
15 buildPythonPackage rec {
16   pname = "fast-histogram";
17   version = "0.12";
18   format = "setuptools";
20   disabled = pythonOlder "3.6";
22   src = fetchFromGitHub {
23     owner = "astrofrog";
24     repo = pname;
25     rev = "v${version}";
26     sha256 = "sha256-Cz4BgbtxbUPxL2NSzvZYjbYIN4KUuliUV0bXRRtyvfM=";
27   };
29   nativeBuildInputs = [
30     setuptools
31     setuptools-scm
32     wheel
33   ];
35   propagatedBuildInputs = [ numpy ];
37   nativeCheckInputs = [
38     pytestCheckHook
39     hypothesis
40     pytest-cov
41   ];
43   pytestFlagsArray = [ "${builtins.placeholder "out"}/${python.sitePackages}" ];
45   pythonImportsCheck = [ "fast_histogram" ];
47   meta = with lib; {
48     homepage = "https://github.com/astrofrog/fast-histogram";
49     description = "Fast 1D and 2D histogram functions in Python";
50     license = licenses.bsd2;
51     maintainers = with maintainers; [ ifurther ];
52   };