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

35 lines
697 B
Nix
Raw Normal View History

2017-12-29 20:22:43 +01:00
{ buildPythonPackage
, lib
, fetchPypi
, setuptools-scm
2019-06-15 19:15:01 +02:00
, importlib-metadata
2017-12-29 20:22:43 +01:00
}:
buildPythonPackage rec {
pname = "pluggy";
2019-12-10 19:07:40 +01:00
version = "0.13.1";
2017-12-29 20:22:43 +01:00
src = fetchPypi {
inherit pname version;
2019-12-10 19:07:40 +01:00
sha256 = "15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0";
2017-12-29 20:22:43 +01:00
};
checkPhase = ''
py.test
'';
# To prevent infinite recursion with pytest
doCheck = false;
nativeBuildInputs = [ setuptools-scm ];
2019-06-15 19:15:01 +02:00
propagatedBuildInputs = [ importlib-metadata ];
2018-08-13 09:29:19 +02:00
2017-12-29 20:22:43 +01:00
meta = {
description = "Plugin and hook calling mechanisms for Python";
2019-05-25 03:00:00 +02:00
homepage = "https://github.com/pytest-dev/pluggy";
2017-12-29 20:22:43 +01:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
2017-12-29 20:22:43 +01:00
};
}