Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / mpl-scatter-density / default.nix
blob152c07f10a7ebc9458179914cc17a0a4cb36de84
1 { lib
2 , buildPythonPackage
3 , pytestCheckHook
4 , fetchFromGitHub
5 , fetchpatch
6 , pythonOlder
7 , setuptools-scm
8 , setuptools
9 , fast-histogram
10 , matplotlib
11 , numpy
12 , wheel
13 , pytest-mpl
16 buildPythonPackage rec {
17   pname = "mpl-scatter-density";
18   version = "0.7";
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-MMxM+iv5p9ZLcBpqa3tBBPbsMM/PTg6BXaDpGgSw+DE=";
28   };
30   patches = [
31     # https://github.com/astrofrog/mpl-scatter-density/pull/37
32     (fetchpatch {
33       name = "distutils-removal.patch";
34       url = "https://github.com/ifurther/mpl-scatter-density/commit/6feedabe1e82da67d8eec46a80eb370d9f334251.patch";
35       sha256 = "sha256-JqWlSm8mIwqjRPa+kMEaKipJyzGEO+gJK+Q045N1MXA=";
36     })
37   ];
39   nativeBuildInputs = [
40     setuptools
41     setuptools-scm
42     wheel
43   ];
45   propagatedBuildInputs = [ matplotlib numpy fast-histogram ];
47   nativeCheckInputs = [
48     pytestCheckHook
49     pytest-mpl
50   ];
52   disabledTests = [
53     # AssertionError: (240, 240) != (216, 216)
54     # Erroneous pinning of figure DPI, sensitive to runtime environment
55     "test_default_dpi"
56   ];
58   pythonImportsCheck = [ "mpl_scatter_density" ];
60   meta = with lib; {
61     homepage = "https://github.com/astrofrog/mpl-scatter-density";
62     description = "Fast scatter density plots for Matplotlib";
63     license = licenses.bsd2;
64     maintainers = with maintainers; [ ifurther ];
65   };