3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #184590 from NickCao/dbus-python

This commit is contained in:
Sandro 2022-08-04 14:26:22 +02:00 committed by GitHub
commit fd22503298
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 19 deletions

View file

@ -36,11 +36,6 @@ buildPythonApplication rec {
-e '/asyncio/d' \
-e '/datetime/d' \
setup.cfg requirements.txt
# Dependencies not correctly detected
sed -i \
-e '/dbus-python/d' \
setup.cfg requirements.txt
'';
propagatedBuildInputs = [

View file

@ -50,9 +50,6 @@ python3.pkgs.buildPythonApplication rec {
postPatch = ''
patchShebangs tests po
# dbus-python is correctly passed in propagatedBuildInputs, but for some reason setup.py complains.
# The wrapped terminator has the correct path added, so ignore this.
substituteInPlace setup.py --replace "'dbus-python'," ""
'';
doCheck = false;

View file

@ -35,6 +35,10 @@ buildPythonPackage rec {
doCheck = isPy3k;
checkInputs = [ dbus.out pygobject3 ];
postInstall = ''
cp -r dbus_python.egg-info $out/${python.sitePackages}/
'';
meta = with lib; {
description = "Python DBus bindings";
license = licenses.mit;

View file

@ -21,11 +21,6 @@ buildPythonPackage rec {
sha256 = "sha256-gsGg9zHVyDTCVZmFUI8qqXDt0ui+o3hPwjRlsYUmShg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"dbus-python"' ""
'';
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [

View file

@ -35,12 +35,6 @@ buildPythonPackage rec {
requests
];
postPatch = ''
# Detection of the platform doesn't always works with 1.2.3
substituteInPlace pyproject.toml \
--replace 'dbus-python = {version = "^1.2.16", platform = "linux"}' ""
'';
# Tests want to use Dbus
doCheck = false;