42 lines
803 B
Nix
42 lines
803 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, stdenv
|
|
, autoPatchelfHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mini-racer";
|
|
version = "0.12.4";
|
|
format = "wheel";
|
|
|
|
src = fetchPypi {
|
|
pname = "mini_racer";
|
|
inherit version format;
|
|
dist = "py3";
|
|
python = "py3";
|
|
abi = "none";
|
|
platform = "manylinux_2_31_x86_64";
|
|
hash = "sha256-aaHETQKpBpuIFoTO8VotdH/gdD3ynq3Igf2nACquX9I=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoPatchelfHook
|
|
];
|
|
|
|
buildInputs = [
|
|
stdenv.cc.cc.lib
|
|
];
|
|
|
|
# Don't strip binaries, it breaks V8
|
|
dontStrip = true;
|
|
|
|
meta = with lib; {
|
|
description = "Minimal Python wrapper for V8 JavaScript engine";
|
|
homepage = "https://github.com/bpcreech/PyMiniRacer";
|
|
license = licenses.isc;
|
|
maintainers = [ ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|