1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 cython,
6 setuptools,
7 numpy,
8 scipy,
9 pytestCheckHook,
10 python,
11}:
12
13buildPythonPackage rec {
14 pname = "tess";
15 version = "0.3.1";
16 pyproject = true;
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-5Ic06+K7CWRh1t2v3aJ5JlBACvHXqQyYzvU71jZJFtI=";
21 };
22
23 build-system = [
24 cython
25 setuptools
26 ];
27
28 dependencies = [
29 numpy
30 scipy
31 ];
32
33 pythonImportsCheck = [ "tess" ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 enabledTestPaths = [ "tess/tests.py" ];
38
39 preCheck = ''
40 cd $out/${python.sitePackages}
41 '';
42
43 meta = {
44 description = "Module for calculating and analyzing Voronoi tessellations";
45 homepage = "https://tess.readthedocs.org";
46 license = lib.licenses.bsd3;
47 maintainers = [ ];
48 };
49}