forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, buildPythonPackage
|
|
, pkgconfig
|
|
, 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 = [ pkgconfig ];
|
|
|
|
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 ];
|
|
};
|
|
}
|