aboutsummaryrefslogtreecommitdiffstats
path: root/src/nix/dearpygui.nix
blob: 1b26eaf12b02b582f94e5a07dff076e665b63223 (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
26
27
28
29
30
31
32
33
34
35
36
37
{ lib, pkgs, buildPythonPackage, fetchPypi, isPy38, autoPatchelfHook }:

assert isPy38;

buildPythonPackage rec {
  pname = "dearpygui";
  version = "1.0.2";
  format = "wheel";

  # src = fetchFromGitHub {
  #   owner = "hoffstadt";
  #   repo  = "DearPyGui";
  #   rev = "v${version}";
  #   sha256 = "094s1r1jjgj6512dp5z5gn50m5g5b7qg6c2wgxhjsn38mxivpd2h";
  #   fetchSubmodules = true;
  # };

  src = fetchPypi {
    inherit pname version format;
    python = "cp38";
    abi = "cp38";
    platform = "manylinux1_x86_64";
    sha256 = "10y8a3v135pziknnrzg8x5q5l6p7jvxgva8r8l5vjhdq9p5mxnab";
  };

  # dontUseCmakeConfigure = false;
  # nativeBuildInputs = with pkgs; [ cmake ];
  nativeBuildInputs = [ autoPatchelfHook ];

  buildInputs = (with pkgs; [
    libGL libGL_driver
  ]) ++ (with pkgs.xorg; [
    libX11 libXrandr libXinerama libXcursor libXi
  ]);

  meta = with lib; {};
}