about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/boost-histogram/default.nix
blob: ed29be91d81fdc110518fa3cc96f903556c00a35 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
, boost
, numpy
, pytestCheckHook
, pytest-benchmark
, setuptools-scm
}:

buildPythonPackage rec {
  pname = "boost-histogram";
  version = "1.4.0";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    pname = "boost_histogram";
    inherit version;
    hash = "sha256-z5gmz8/hAzUJa1emH2xlafZfAVklnusiUcW/MdhZ11M=";
  };

  nativeBuildInputs = [
    setuptools-scm
  ];

  buildInputs = [
    boost
  ];

  propagatedBuildInputs = [
    numpy
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-benchmark
  ];

  meta = with lib; {
    description = "Python bindings for the C++14 Boost::Histogram library";
    homepage = "https://github.com/scikit-hep/boost-histogram";
    license = licenses.bsd3;
    maintainers = with maintainers; [ veprbl ];
  };
}