Bug 1720235

Summary: Unable to install python3-pygatt: nothing provides python3.7dist(enum-compat)
Product: [Fedora] Fedora Reporter: Tomas Smetana <tsmetana>
Component: python-pygattAssignee: Fabian Affolter <mail>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: mail
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pygatt-4.0.3-2.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-28 16:33:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Proposed patch none

Description Tomas Smetana 2019-06-13 13:00:46 UTC
Description of problem:
python3-pygatt can't be installed on Fedora 30.

Version-Release number of selected component (if applicable):
python-pygatt-4.0.3-1.fc3

How reproducible:
Always

Steps to Reproduce:
1. dnf install python3-pygatt

Actual results:

Error: 
 Problem: conflicting requests
  - nothing provides python3.7dist(enum-compat) needed by python3-pygatt-4.0.3-1.fc30.noarch
  - nothing provides python3.7dist(enum-compat) needed by python3-pygatt-3.2.0-7.fc30.noarch
(try to add '--skip-broken' to skip uninstallable packages)

Expected results:
Installation successful

Comment 1 Tomas Smetana 2019-06-13 15:25:18 UTC
This is caused by the automatic requires generator. It parses the setup.py file and turns all the install_requires into dependencies. The 'enum-compat' module should not be required for python newer than 3.4, so it should be safe to patch this out.

Comment 2 Tomas Smetana 2019-06-13 15:28:57 UTC
Created attachment 1580346 [details]
Proposed patch

Comment 3 Tomas Smetana 2019-06-14 07:51:36 UTC
And... thinking about it, maybe disabling the dependency generator (https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_automatically_generated_dependencies) would be a "cleaner" solution.

Comment 4 Fedora Update System 2019-06-25 14:24:09 UTC
FEDORA-2019-3406b0b8de has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-3406b0b8de

Comment 5 Fedora Update System 2019-06-26 02:48:02 UTC
python-pygatt-4.0.3-2.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-3406b0b8de

Comment 6 Fedora Update System 2019-06-28 16:33:38 UTC
python-pygatt-4.0.3-2.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.