nixpkgs/pkgs/development/python-modules/dbus/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
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.
2021-01-19 01:16:25 -08:00

37 lines
852 B
Nix

{ lib, fetchPypi, buildPythonPackage, python, pkg-config, dbus, dbus-glib, isPyPy
, ncurses, pygobject3, isPy3k }:
buildPythonPackage rec {
pname = "dbus-python";
version = "1.2.16";
format = "other";
outputs = [ "out" "dev" ];
src = fetchPypi {
inherit pname version;
sha256 = "196m5rk3qzw5nkmgzjl7wmq0v7vpwfhh8bz2sapdi5f9hqfqy8qi";
};
patches = [
./fix-includedir.patch
];
disabled = isPyPy;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dbus dbus-glib ]
# My guess why it's sometimes trying to -lncurses.
# It seems not to retain the dependency anyway.
++ lib.optional (! python ? modules) ncurses;
doCheck = isPy3k;
checkInputs = [ dbus.out pygobject3 ];
meta = {
description = "Python DBus bindings";
license = lib.licenses.mit;
platforms = dbus.meta.platforms;
};
}