2017-12-29 19:22:43 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, fetchPypi
|
2021-06-03 11:09:11 +01:00
|
|
|
, setuptools-scm
|
2021-10-14 00:26:33 +01:00
|
|
|
, pythonOlder
|
2019-06-15 18:15:01 +01:00
|
|
|
, importlib-metadata
|
2017-12-29 19:22:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pluggy";
|
2021-08-26 20:38:08 +01:00
|
|
|
version = "1.0.0";
|
2017-12-29 19:22:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-26 20:38:08 +01:00
|
|
|
sha256 = "4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159";
|
2017-12-29 19:22:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
# To prevent infinite recursion with pytest
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-06-03 11:09:11 +01:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2019-06-15 18:15:01 +01:00
|
|
|
|
2021-10-14 00:26:33 +01:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
|
|
|
];
|
2018-08-13 08:29:19 +01:00
|
|
|
|
2017-12-29 19:22:43 +00:00
|
|
|
meta = {
|
|
|
|
description = "Plugin and hook calling mechanisms for Python";
|
2019-05-25 02:00:00 +01:00
|
|
|
homepage = "https://github.com/pytest-dev/pluggy";
|
2017-12-29 19:22:43 +00:00
|
|
|
license = lib.licenses.mit;
|
2021-10-14 00:26:33 +01:00
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
2017-12-29 19:22:43 +00:00
|
|
|
};
|
2019-03-12 22:45:33 +00:00
|
|
|
}
|