2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-06-20 14:57:18 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonOlder,
|
|
|
|
numpy,
|
|
|
|
jsonschema,
|
|
|
|
svgwrite,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tskit";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.5.7";
|
|
|
|
pyproject = true;
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-yD+2W1tzzi+5wFoZrqNe+jJLpWyx6ZILBgKivDE+wiM=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
dependencies = [
|
2023-07-15 17:15:38 +00:00
|
|
|
jsonschema
|
2024-06-20 14:57:18 +00:00
|
|
|
numpy
|
2023-07-15 17:15:38 +00:00
|
|
|
svgwrite
|
|
|
|
];
|
|
|
|
|
|
|
|
# Pypi does not include test folder and too complex to compile from GitHub source
|
|
|
|
# will ask upstream to include tests in pypi
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "tskit" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
|
|
|
description = "Tree sequence toolkit";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "tskit";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/tskit-dev/tskit";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ alxsimon ];
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|