Unverified Commit f22eeb0a authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

python312Packages.noise: refactor (#341394)

parents ec62ec32 6ed35734
Loading
Loading
Loading
Loading
+15 −4
Original line number Diff line number Diff line
@@ -2,22 +2,33 @@
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "noise";
  version = "1.2.2";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0rcv40dcshqpchwkdlhsv3n68h9swm9fh4d1cgzr2hsp6rs7k8jp";
    hash = "sha256-V6J5dDZXQ5H/Y6ER6FLlOkFk7Nga0jY5ZBdDzRogm2U=";
  };

  build-system = [ setuptools ];

  # PyPI release don't contain tests
  doCheck = false;

  pythonImportsCheck = [ "noise" ];

  meta = with lib; {
    homepage = "https://github.com/caseman/noise";
    description = "Native-code and shader implementations of Perlin noise";
    homepage = "https://github.com/caseman/noise";
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = [ ];
  };
}