mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
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>
40 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
}
|