nixpkgs/pkgs/development/python-modules/pluggy/default.nix

38 lines
760 B
Nix
Raw Normal View History

2017-12-29 19:22:43 +00:00
{ buildPythonPackage
, lib
, fetchPypi
, setuptools-scm
, pythonOlder
2019-06-15 18:15:01 +01:00
, importlib-metadata
2017-12-29 19:22:43 +00:00
}:
buildPythonPackage rec {
pname = "pluggy";
version = "1.0.0";
2017-12-29 19:22:43 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159";
2017-12-29 19:22:43 +00:00
};
checkPhase = ''
py.test
'';
# To prevent infinite recursion with pytest
doCheck = false;
nativeBuildInputs = [ setuptools-scm ];
2019-06-15 18:15:01 +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;
maintainers = with lib.maintainers; [ dotlambda ];
2017-12-29 19:22:43 +00:00
};
}