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