depot/third_party/nixpkgs/pkgs/development/python-modules/opensimplex/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "opensimplex";
version = "0.4.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "lmas";
repo = pname;
rev = "v${version}";
sha256 = "C/MTKTHjxMsOgzuXvokw039Kv6N/PgBoOqKleWPLpw0=";
};
propagatedBuildInputs = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests/test_opensimplex.py" ];
pythonImportsCheck = [ "opensimplex" ];
meta = with lib; {
description = "OpenSimplex Noise functions for 2D, 3D and 4D";
longDescription = ''
OpenSimplex noise is an n-dimensional gradient noise function that was
developed in order to overcome the patent-related issues surrounding
Simplex noise, while continuing to also avoid the visually-significant
directional artifacts characteristic of Perlin noise.
'';
homepage = "https://github.com/lmas/opensimplex";
license = with licenses; [ mit ];
maintainers = with maintainers; [ emilytrau ];
};
}