Unverified Commit 842db5ba authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

python3Packages.numpy: use fetchFromGitHub (#445837)

parents 416b972c 5b502715
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchPypi,
  fetchFromGitHub,
  python,
  numpy_2,
  pythonAtLeast,
@@ -64,10 +64,12 @@ buildPythonPackage rec {

  disabled = pythonOlder "3.11";

  src = fetchPypi {
    inherit pname version;
    extension = "tar.gz";
    hash = "sha256-3cfDlye6YrgN/b7fQA0cEN36ju+9fsjcsRi+i1bTECk=";
  src = fetchFromGitHub {
    owner = "numpy";
    repo = "numpy";
    tag = "v${version}";
    fetchSubmodules = true;
    hash = "sha256-6RMzF5vOWSX7gL3mps9ECClJF3mNqL1mexM6j8/yfdc=";
  };

  patches = lib.optionals python.hasDistutilsCxxPatch [
@@ -176,7 +178,7 @@ buildPythonPackage rec {
  };

  meta = {
    changelog = "https://github.com/numpy/numpy/releases/tag/v${version}";
    changelog = "https://github.com/numpy/numpy/releases/tag/${src.tag}";
    description = "Scientific tools for Python";
    homepage = "https://numpy.org/";
    license = lib.licenses.bsd3;