Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / fast-histogram / default.nix
blobfd00ff5df8e20eea948a32a8ce3175d6e631b453
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";
19   disabled = pythonOlder "3.6";
21   src = fetchFromGitHub {
22     owner = "astrofrog";
23     repo = pname;
24     rev = "v${version}";
25     sha256 = "sha256-Cz4BgbtxbUPxL2NSzvZYjbYIN4KUuliUV0bXRRtyvfM=";
26   };
28   nativeBuildInputs = [
29     setuptools
30     setuptools-scm
31     wheel
32   ];
34   propagatedBuildInputs = [ numpy ];
36   nativeCheckInputs = [
37     pytestCheckHook
38     hypothesis
39     pytest-cov
40   ];
42   pytestFlagsArray = [ "${builtins.placeholder "out"}/${python.sitePackages}" ];
44   env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
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   };