Unverified Commit e7e7df50 authored by annalee's avatar annalee
Browse files

python311Packages.msprime: apply upstream patch; fix build

parent b7137a71
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, oldest-supported-numpy
, setuptools-scm
, wheel
@@ -26,6 +27,16 @@ buildPythonPackage rec {
    hash = "sha256-YAJa2f0w2CenKubnYLbP8HodDhabLB2hAkyw/CPkp6o=";
  };

  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