Unverified Commit 919f78a5 authored by Theodore Ni's avatar Theodore Ni Committed by GitHub
Browse files

python3.pkgs.broadbean: add build dependencies and fix constraints (#247464)

parent 42c54131
Loading
Loading
Loading
Loading
+23 −2
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, pythonOlder
, setuptools
, versioningit
, wheel
, numpy
, matplotlib
, schema
@@ -20,10 +22,29 @@ buildPythonPackage rec {

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-e+LAcmWxT+SkaWtToPgg+x3QRu5fCSm+w4dLCcyZrw8=";
    hash = "sha256-e+LAcmWxT+SkaWtToPgg+x3QRu5fCSm+w4dLCcyZrw8=";
  };

  nativeBuildInputs = [ setuptools versioningit ];
  patches = [
    # https://github.com/QCoDeS/broadbean/pull/538
    (fetchpatch {
      name = "drop-wheel-from-pyproject.patch";
      url = "https://github.com/QCoDeS/broadbean/commit/31a2147e4f452fef1ca2b56b1cb0b10ac85ac867.patch";
      hash = "sha256-lBikIRhaf3ecwE7NZrYWeHkQCHQdfS9eeOcFExGIsVk=";
    })
    # https://github.com/QCoDeS/broadbean/pull/638
    (fetchpatch {
      name = "unpin-versioningit-dependency.patch";
      url = "https://github.com/QCoDeS/broadbean/commit/e4fd6c38d076aa3a6542dcd8fa7d2eb9d7a9b789.patch";
      hash = "sha256-mw68pWAjztWBw22MeoWVbwIwjzMOJRtv6HctN3v6A2A=";
    })
  ];

  nativeBuildInputs = [
    setuptools
    versioningit
    wheel
  ];

  propagatedBuildInputs = [
    numpy