1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8 setuptools-scm,
9
10 # dependencies
11 matplotlib,
12
13 # tests
14 pytestCheckHook,
15}:
16
17buildPythonPackage rec {
18 pname = "mplcursors";
19 version = "0.7";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "anntzer";
24 repo = "mplcursors";
25 rev = "v${version}";
26 hash = "sha256-bHBMi9xtawV50xPyR1vsGg+1KmTWjeErP9yh2tZxTIg=";
27 };
28
29 build-system = [
30 setuptools
31 setuptools-scm
32 ];
33
34 dependencies = [
35 matplotlib
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [
43 "mplcursors"
44 ];
45
46 meta = {
47 description = "Interactive data selection cursors for Matplotlib";
48 homepage = "https://github.com/anntzer/mplcursors";
49 changelog = "https://github.com/anntzer/mplcursors/blob/${src.rev}/CHANGELOG.rst";
50 license = lib.licenses.zlib;
51 maintainers = with lib.maintainers; [ doronbehar ];
52 };
53}