aboutsummaryrefslogtreecommitdiffstats
path: root/video/nix/mapbox-earcut.nix
blob: d325401e604fde10f3181065b9ff2d4a7fe5ca21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, pkgs, buildPythonPackage, fetchPypi }:

buildPythonPackage rec {
  pname = "mapbox_earcut";
  version = "0.12.10";
  src = fetchPypi {
    inherit pname version;
    format = "setuptools";
    sha256 = "0ly48lijgd9inq07x42pfp9c24fn16vn9axpmfwqrkn979krbnah";
  };

  dontUseCmakeConfigure = true;

  nativeBuildInputs = with pkgs; [ cmake ];

  buildInputs = with pkgs.python3Packages; [
    setuptools_scm pybind11
  ];

  propagatedBuildInputs = with pkgs.python3Packages; [
    numpy
  ];

  meta = with lib; {};
}