nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 57fc2d117b9ab1152280a4a6a668a104de9e6aad
parent f64c107d66ad8a4893808f2d6e9a9bb895d81ba0
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Mon, 22 Nov 2021 11:03:32 +0300

Add python3Packages.pnoise

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/pnoise/default.nix | 26++++++++++++++++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -277,6 +277,7 @@ lib.makeScope newScope ( musig = callPackage ./misc/musig { }; objlab = callPackage ./misc/objlab { }; playonmac = callPackage ./misc/playonmac { }; + pnoise = callPackage ./misc/pnoise { }; ptunnel = callPackage ./misc/ptunnel { }; pvs-studio = callPackage ./misc/pvs-studio { }; repolocli = callPackage ./misc/repolocli { }; diff --git a/pkgs/misc/pnoise/default.nix b/pkgs/misc/pnoise/default.nix @@ -0,0 +1,26 @@ +{ lib, python3Packages, fetchFromGitHub, poetry }: + +python3Packages.buildPythonApplication rec { + pname = "pnoise"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "plottertools"; + repo = pname; + rev = version; + hash = "sha256-3NoU+7U2Mv+0v7EfEmxoyfdSVSNSH/hM+6nio3rr8tg="; + }; + + postPatch = "sed -i 's/>=.*\"/\"/' setup.py"; + + propagatedBuildInputs = with python3Packages; [ numpy ]; + + checkInputs = with python3Packages; [ pytestCheckHook ]; + + meta = with lib; { + description = "Vectorized port of Processing noise() function"; + inherit (src.meta) homepage; + license = licenses.lgpl2Plus; + maintainers = [ maintainers.sikmir ]; + }; +}