1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8 setuptools-scm,
9
10 # dependencies
11 mpmath,
12 numpy,
13 scipy,
14
15 # tests
16 pytestCheckHook,
17 pytest-xdist,
18}:
19
20buildPythonPackage rec {
21 pname = "hankel";
22 version = "1.2.2";
23 pyproject = true;
24
25 src = fetchFromGitHub {
26 owner = "steven-murray";
27 repo = "hankel";
28 tag = "v${version}";
29 hash = "sha256-/5PvbH8zz2siLS1YJYRSrl/Cpi0WToBu1TJhlek8VEE=";
30 };
31
32 build-system = [
33 setuptools
34 setuptools-scm
35 ];
36
37 dependencies = [
38 mpmath
39 numpy
40 scipy
41 ];
42
43 pythonImportsCheck = [ "hankel" ];
44
45 nativeCheckInputs = [
46 pytestCheckHook
47 pytest-xdist
48 ];
49
50 disabledTests = [
51 # ValueError: Calling nonzero on 0d arrays is not allowed.
52 "test_nu0"
53 ];
54
55 meta = {
56 description = "Implementation of Ogata's (2005) method for Hankel transforms";
57 homepage = "https://github.com/steven-murray/hankel";
58 changelog = "https://github.com/steven-murray/hankel/v${version}/CHANGELOG.rst";
59 license = lib.licenses.mit;
60 maintainers = with lib.maintainers; [ sigmanificient ];
61 };
62}