If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
33 lines
641 B
Nix
33 lines
641 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pkg-config,
|
|
}:
|
|
|
|
let
|
|
pname = "sdbus";
|
|
version = "0.14.0";
|
|
in
|
|
buildPythonPackage {
|
|
format = "setuptools";
|
|
inherit pname version;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ pkgs.systemd ];
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QdYbdswFqepB0Q1woR6fmobtlfQPcTYwxeGDQODkx28=";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Modern Python library for D-Bus";
|
|
homepage = "https://github.com/python-sdbus/python-sdbus";
|
|
license = licenses.lgpl2;
|
|
maintainers = with maintainers; [ camelpunch ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|