1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, nose 5}: 6 7buildPythonPackage rec { 8 pname = "opensimplex"; 9 version = "0.3"; 10 11 src = fetchFromGitHub { 12 owner = "lmas"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "idF5JQGnAye6z3c3YU9rsHaebB3rlHJfA8vSpjDnFeM="; 16 }; 17 18 checkInputs = [ nose ]; 19 checkPhase = '' 20 nosetests tests/ 21 ''; 22 pythonImportsCheck = [ "opensimplex" ]; 23 24 meta = with lib; { 25 description = "OpenSimplex Noise functions for 2D, 3D and 4D"; 26 longDescription = '' 27 OpenSimplex noise is an n-dimensional gradient noise function that was 28 developed in order to overcome the patent-related issues surrounding 29 Simplex noise, while continuing to also avoid the visually-significant 30 directional artifacts characteristic of Perlin noise. 31 ''; 32 homepage = "https://github.com/lmas/opensimplex"; 33 license = with licenses; [ mit ]; 34 maintainers = with maintainers; [ angustrau ]; 35 }; 36}