python312Packages.noise: refactor (#341394)

This commit is contained in:
OTABI Tomoya 2024-09-13 12:20:55 +09:00 committed by GitHub
commit f22eeb0a50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = [ ];
};
}