summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/cexprtk/default.nix
blob: f2109813affd614a7ffae4d038666361ceaea8a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  lib,
  fetchPypi,
  buildPythonPackage,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "cexprtk";
  version = "0.4.2";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-sBLkHco0u2iEsdUxmPW2ONP/Fe08p0fOVJLmzz3t4os=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "cexprtk" ];

  meta = {
    description = "Mathematical expression parser, cython wrapper";
    homepage = "https://github.com/mjdrushton/cexprtk";
    changelog = "https://github.com/mjdrushton/cexprtk/blob/${version}/CHANGES.md";
    license = lib.licenses.cpl10;
    maintainers = with lib.maintainers; [ onny ];
  };
}