9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, buildPythonPackage
|
|
, pkg-config
|
|
, python
|
|
, dbus-python
|
|
, enlightenment
|
|
}:
|
|
|
|
# Should be bumped along with EFL!
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-efl";
|
|
version = "1.25.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.enlightenment.org/rel/bindings/python/${pname}-${version}.tar.xz";
|
|
sha256 = "0bk161xwlz4dlv56r68xwkm8snzfifaxd1j7w2wcyyk4fgvnvq4r";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ enlightenment.efl ];
|
|
|
|
propagatedBuildInputs = [ dbus-python ];
|
|
|
|
preConfigure = ''
|
|
NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl evas) $NIX_CFLAGS_COMPILE"
|
|
'';
|
|
|
|
preBuild = ''
|
|
${python.interpreter} setup.py build_ext
|
|
'';
|
|
|
|
installPhase = ''
|
|
${python.interpreter} setup.py install --prefix=$out
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Python bindings for EFL and Elementary";
|
|
homepage = "https://phab.enlightenment.org/w/projects/python_bindings_for_efl/";
|
|
platforms = platforms.linux;
|
|
license = with licenses; [ gpl3 lgpl3 ];
|
|
maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
|
|
};
|
|
}
|