packages/packages/pnoise/default.nix

29 lines
610 B
Nix

{
lib,
python3,
fetchFromGitHub,
}:
python3.buildPythonPackage rec {
pname = "pnoise";
version = "0.2.0";
src = fetchFromGitHub {
owner = "plottertools";
repo = "pnoise";
rev = version;
hash = "sha256-JwWzLvgCNSLRs/ToZNFH6fN6VLEsQTmsgxxkugwjA9k=";
};
format = "setuptools";
propagatedBuildInputs = with python3; [ numpy ];
meta = with lib; {
description = "Vectorized port of Processing noise() function";
homepage = "https://github.com/plottertools/pnoise";
license = with licenses; [ lgpl21Only ];
maintainers = with maintainers; [ artemist ];
};
}