1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 meson,
7 meson-python,
8 numpy,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "numpy-financial";
14 version = "1.0.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "numpy";
19 repo = "numpy-financial";
20 tag = "v${version}";
21 hash = "sha256-6hSi5Y292Ikfb2m2SLvIHJS0nZcGKgGzvybgmpxReWI=";
22 };
23
24 build-system = [
25 meson
26 meson-python
27 setuptools
28 ];
29
30 dependencies = [ numpy ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "numpy_financial" ];
37
38 meta = {
39 homepage = "https://numpy.org/numpy-financial/";
40 changelog = "https://github.com/numpy/numpy-financial/releases/tag/v${version}";
41 description = "Collection of elementary financial functions";
42 license = lib.licenses.bsd3;
43 maintainers = with lib.maintainers; [ flokli ];
44 };
45}