1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 decorator,
11 lxml,
12 matplotlib,
13 numpy,
14 requests,
15 scipy,
16 sqlalchemy,
17}:
18
19buildPythonPackage rec {
20 pname = "obspy";
21 version = "1.4.2";
22 pyproject = true;
23
24 src = fetchFromGitHub {
25 owner = "obspy";
26 repo = "obspy";
27 tag = version;
28 hash = "sha256-QBV9FRvUUy8/5KK5RdAXXLB8SK9llFy1XRnQ9T5bgcU=";
29 };
30
31 build-system = [ setuptools ];
32
33 pythonRelaxDeps = [ "sqlalchemy" ];
34
35 dependencies = [
36 decorator
37 lxml
38 matplotlib
39 numpy
40 requests
41 scipy
42 sqlalchemy
43 ];
44
45 # Tests require Internet access.
46 doCheck = false;
47
48 pythonImportsCheck = [ "obspy" ];
49
50 meta = {
51 description = "Python framework for seismological observatories";
52 homepage = "https://www.obspy.org";
53 changelog = "https://github.com/obspy/obspy/releases/tag/${src.tag}";
54 license = lib.licenses.lgpl3Only;
55 maintainers = [ lib.maintainers.ametrine ];
56 };
57}