python37Packages.stevedore: fix build

This commit is contained in:
Jonathan Ringer 2020-08-16 20:56:20 -07:00
parent 996e817508
commit 8dc8a057bd
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0

View File

@ -1,4 +1,9 @@
{ stdenv, buildPythonPackage, fetchPypi, pbr, setuptools, six }:
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, importlib-metadata
, pbr
, setuptools
, six
}:
buildPythonPackage rec {
pname = "stevedore";
@ -6,14 +11,16 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "38791aa5bed922b0a844513c5f9ed37774b68edc609e5ab8ab8d8fe0ce4315e5";
sha256 = "1r8m8g7f13wdmfw5m7k0vj7bcx3psfg5yg2i8jlb08nrpsjily9q";
};
propagatedBuildInputs = [ pbr setuptools six ]
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
doCheck = false;
pythonImportsCheck = [ "stevedore" ];
propagatedBuildInputs = [ pbr setuptools six ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Manage dynamic plugins for Python applications";
homepage = "https://pypi.python.org/pypi/stevedore";
license = licenses.asl20;