9 oldest-supported-numpy,
19 buildPythonPackage rec {
24 disabled = pythonOlder "3.8";
27 inherit pname version;
28 hash = "sha256-2K55gHYWf2Mrj9fszVCJ+qqEyQNMppQi+IZCX5SlsBs=";
32 # build-time constriant, used to ensure forward and backward compat
33 substituteInPlace pyproject.toml \
34 --replace-fail "numpy>=2" "numpy"
39 oldest-supported-numpy
44 buildInputs = [ gsl ];
46 propagatedBuildInputs = [
60 "tests/test_ancestry.py::TestSimulator::test_debug_logging"
61 "tests/test_ancestry.py::TestSimulator::test_debug_logging_dtw"
65 "tests/test_demography.py"
66 "tests/test_algorithms.py"
67 "tests/test_provenance.py"
68 "tests/test_dict_encoding.py"
71 # `python -m pytest` puts $PWD in sys.path, which causes the extension
72 # modules imported as `msprime._msprime` to be unavailable, failing the
73 # tests. This deletes the `msprime` folder such that only what's installed in
74 # $out is used for the imports. See also discussion at:
75 # https://github.com/NixOS/nixpkgs/issues/255262
79 pythonImportsCheck = [ "msprime" ];
82 description = "Simulate genealogical trees and genomic sequence data using population genetic models";
83 homepage = "https://github.com/tskit-dev/msprime";
84 changelog = "https://github.com/tskit-dev/msprime/blob/${version}/CHANGELOG.md";
85 license = licenses.gpl3Plus;
86 maintainers = with maintainers; [ alxsimon ];