1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 matplotlib,
6}:
7
8buildPythonPackage rec {
9 pname = "mpldatacursor";
10 version = "0.7.1";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "joferkington";
15 repo = "mpldatacursor";
16 rev = "v${version}";
17 sha256 = "0i1lwl6x6hgjq4xwsc138i4v5895lmnpfqwpzpnj5mlck6fy6rda";
18 };
19
20 propagatedBuildInputs = [ matplotlib ];
21
22 # No tests included in archive
23 doCheck = false;
24
25 pythonImportsCheck = [ "mpldatacursor" ];
26
27 meta = with lib; {
28 homepage = "https://github.com/joferkington/mpldatacursor";
29 description = "Interactive data cursors for matplotlib";
30 license = licenses.mit;
31 maintainers = with maintainers; [ bzizou ];
32 };
33}