1{
2 lib,
3 buildPythonPackage,
4 cython,
5 fetchFromGitHub,
6 hatchling,
7 numpy,
8 pytestCheckHook,
9 pythonOlder,
10 pyzmq,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "pymodes";
16 version = "2.21.1";
17 pyproject = true;
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "junzis";
23 repo = "pyModeS";
24 tag = "v${version}";
25 hash = "sha256-Tla5hJ7J/3R4r4fTQMUIpY+QGvLRuNMZfWU0RsAiuk0=";
26 };
27
28 build-system = [
29 cython
30 hatchling
31 setuptools
32 ];
33
34 dependencies = [
35 numpy
36 pyzmq
37 ];
38
39 nativeCheckInputs = [ pytestCheckHook ];
40
41 pythonImportsCheck = [ "pyModeS" ];
42
43 meta = with lib; {
44 description = "Python Mode-S and ADS-B Decoder";
45 homepage = "https://github.com/junzis/pyModeS";
46 changelog = "https://github.com/junzis/pyModeS/releases/tag/${src.tag}";
47 license = licenses.gpl3Plus;
48 maintainers = with maintainers; [ snicket2100 ];
49 };
50}