nixpkgs/pkgs/development/python-modules/tskit/default.nix
Martin Weinelt b1c87cc760 python3Packages.tskit: 0.6.4 -> 1.0.0
This commit was automatically generated using update-python-libraries.
2026-02-01 17:39:06 +01:00

48 lines
960 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
numpy,
jsonschema,
svgwrite,
}:
buildPythonPackage rec {
pname = "tskit";
version = "1.0.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-d6XzOSPVh1jsRg1A49aMWFyWVN29naYyYVXs82KQ0OA=";
};
postPatch = ''
# build-time constriant, used to ensure forward and backward compat
substituteInPlace pyproject.toml \
--replace-fail "numpy>=2.0" "numpy"
'';
build-system = [ setuptools ];
dependencies = [
jsonschema
numpy
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;
pythonImportsCheck = [ "tskit" ];
meta = {
description = "Tree sequence toolkit";
mainProgram = "tskit";
homepage = "https://github.com/tskit-dev/tskit";
license = lib.licenses.mit;
maintainers = [ ];
};
}