Files
nixpkgs/pkgs/development/python-modules/opensimplex/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "opensimplex";
version = "0.4.5";
format = "setuptools";
src = fetchFromGitHub {
owner = "lmas";
repo = "opensimplex";
rev = "v${version}";
sha256 = "sha256-pxPak0H6Rh9KwhIsrnMvBFm1uF5XKb4B3H9cN6DM0g4=";
};
propagatedBuildInputs = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "tests/test_opensimplex.py" ];
pythonImportsCheck = [ "opensimplex" ];
meta = {
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 lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ emilytrau ];
};
}