depot/third_party/nixpkgs/pkgs/development/python-modules/opensimplex/default.nix
Default email 0fe1cd7bea Project import generated by Copybara.
GitOrigin-RevId: c6c4a3d45ab200f17805d2d86a1ff1cc7ca2b186
2021-07-16 21:40:57 +02:00

38 lines
974 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, autopep8
, nose
, pycodestyle
, twine
}:
buildPythonPackage rec {
pname = "opensimplex";
version = "0.3";
src = fetchFromGitHub {
owner = "lmas";
repo = pname;
rev = "v${version}";
sha256 = "idF5JQGnAye6z3c3YU9rsHaebB3rlHJfA8vSpjDnFeM=";
};
checkInputs = [ autopep8 nose pycodestyle twine ];
checkPhase = ''
nosetests tests/
'';
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; [ angustrau ];
};
}