diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/msprime/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/msprime/default.nix | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/msprime/default.nix b/nixpkgs/pkgs/development/python-modules/msprime/default.nix index 2ec32c255dfa..cf0f8abb22be 100644 --- a/nixpkgs/pkgs/development/python-modules/msprime/default.nix +++ b/nixpkgs/pkgs/development/python-modules/msprime/default.nix @@ -1,42 +1,32 @@ { lib , buildPythonPackage +, demes , fetchPypi -, fetchpatch -, oldest-supported-numpy -, setuptools-scm -, wheel -, pythonOlder , gsl -, numpy , newick -, tskit -, demes -, pytestCheckHook +, numpy +, oldest-supported-numpy , pytest-xdist +, pytestCheckHook +, pythonOlder , scipy +, setuptools-scm +, tskit +, wheel }: buildPythonPackage rec { pname = "msprime"; - version = "1.2.0"; - format = "pyproject"; + version = "1.3.0"; + pyproject = true; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-YAJa2f0w2CenKubnYLbP8HodDhabLB2hAkyw/CPkp6o="; + hash = "sha256-eYjGHvlJXDZ+gu/J+52AI8PbKiB6ZEXUORlTrzxCbCk="; }; - patches = [ - # upstream patch fixes 2 failing unittests. remove on update - (fetchpatch { - name = "python311.patch"; - url = "https://github.com/tskit-dev/msprime/commit/639125ec942cb898cf4a80638f229e11ce393fbc.patch"; - hash = "sha256-peli4tdu8Bv21xIa5H8SRdfjQnTMO72IPFqybmSBSO8="; - includes = [ "tests/test_ancestry.py" ]; - }) - ]; - nativeBuildInputs = [ gsl oldest-supported-numpy @@ -60,10 +50,12 @@ buildPythonPackage rec { pytest-xdist scipy ]; + disabledTests = [ "tests/test_ancestry.py::TestSimulator::test_debug_logging" "tests/test_ancestry.py::TestSimulator::test_debug_logging_dtw" ]; + disabledTestPaths = [ "tests/test_demography.py" "tests/test_algorithms.py" @@ -86,6 +78,7 @@ buildPythonPackage rec { meta = with lib; { description = "Simulate genealogical trees and genomic sequence data using population genetic models"; homepage = "https://github.com/tskit-dev/msprime"; + changelog = "https://github.com/tskit-dev/msprime/blob/${version}/CHANGELOG.md"; license = licenses.gpl3Plus; maintainers = with maintainers; [ alxsimon ]; }; |