nixpkgs/pkgs/development/python-modules/opensimplex/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

37 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "opensimplex";
version = "0.4.3";
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 ];
};
}