nibylandia/pkgs/minecraft-overviewer.nix

45 lines
1.0 KiB
Nix
Raw Normal View History

{ fetchFromGitHub, pkgs, buildPythonPackage, python3Packages, python3, ... }:
2023-10-14 21:24:33 +00:00
buildPythonPackage rec {
pname = "Minecraft-Overviewer";
version = "2024-03-15";
2023-10-14 21:24:33 +00:00
format = "other";
2024-03-24 13:32:40 +00:00
propagatedBuildInputs = with pkgs;
[ pipreqs ] ++ (with python3Packages; [
pillow_with_headers
altgraph
certifi
charset-normalizer
docopt
idna
importlib-metadata
nbtlib
numpy
packaging
pefile
requests
urllib3
yarg
zipp
]);
2023-10-14 21:24:33 +00:00
buildInputs = with python3Packages; [ setuptools ];
buildPhase = ''
export CFLAGS="-I${python3Packages.pillow_with_headers}/include/libImaging"
2023-10-14 21:24:33 +00:00
${python3.interpreter} setup.py build
'';
installPhase = ''
${python3.interpreter} setup.py install --prefix=$out --install-lib=$out/${python3.sitePackages}
'';
src = fetchFromGitHub {
owner = "GregoryAM-SP";
repo = "The-Minecraft-Overviewer";
rev = "4deb15d2cfbaaff7327a39b1e24d03eb4f7878ec";
sha256 = "sha256-8YCZ7pk0Rj7wAT5DqGZmNsSI5qQWx5By+1G73yUsAQw=";
2023-10-14 21:24:33 +00:00
};
}