Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, numpy 5, pytestCheckHook 6, setuptools 7}: 8 9buildPythonPackage rec { 10 pname = "vnoise"; 11 version = "0.1.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "plottertools"; 16 repo = "vnoise"; 17 rev = version; 18 hash = "sha256-nflAh3vj48wneM0wy/+M+XD6GC63KZEIFb1x4SS46YI="; 19 }; 20 21 nativeBuildInputs = [ setuptools ]; 22 23 propagatedBuildInputs = [ numpy ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 pythonImportsCheck = [ "vnoise" ]; 28 29 meta = with lib; { 30 description = "Vectorized, pure-Python Perlin noise library"; 31 homepage = "https://github.com/plottertools/vnoise"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ SuperSandro2000 ]; 34 }; 35}