summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tess/default.nix
blob: d28de79e9d91c722df749d3b57dfbfed0ad8d77c (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  lib,
  buildPythonPackage,
  fetchPypi,
  cython,
  setuptools,
  numpy,
  scipy,
  pytestCheckHook,
  python,
}:

buildPythonPackage rec {
  pname = "tess";
  version = "0.3.1";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-5Ic06+K7CWRh1t2v3aJ5JlBACvHXqQyYzvU71jZJFtI=";
  };

  build-system = [
    cython
    setuptools
  ];

  dependencies = [
    numpy
    scipy
  ];

  pythonImportsCheck = [ "tess" ];

  nativeCheckInputs = [ pytestCheckHook ];

  enabledTestPaths = [ "tess/tests.py" ];

  preCheck = ''
    cd $out/${python.sitePackages}
  '';

  meta = {
    description = "Module for calculating and analyzing Voronoi tessellations";
    homepage = "https://tess.readthedocs.org";
    license = lib.licenses.bsd3;
    maintainers = [ ];
  };
}