1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools-scm,
6 pythonOlder,
7 numpy,
8 jsonschema,
9 svgwrite,
10}:
11
12buildPythonPackage rec {
13 pname = "tskit";
14 version = "0.5.6";
15 format = "pyproject";
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-3f4hPxywY822mCF3IwooBezX38fM1zAm4Th4q//SzkY=";
21 };
22
23 nativeBuildInputs = [ setuptools-scm ];
24
25 propagatedBuildInputs = [
26 numpy
27 jsonschema
28 svgwrite
29 ];
30
31 # Pypi does not include test folder and too complex to compile from GitHub source
32 # will ask upstream to include tests in pypi
33 doCheck = false;
34
35 pythonImportsCheck = [ "tskit" ];
36
37 meta = with lib; {
38 description = "The tree sequence toolkit";
39 mainProgram = "tskit";
40 homepage = "https://github.com/tskit-dev/tskit";
41 license = licenses.mit;
42 maintainers = with maintainers; [ alxsimon ];
43 };
44}