2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, docutils
|
2021-09-18 10:52:07 +00:00
|
|
|
, python
|
2021-08-05 21:33:18 +00:00
|
|
|
, pygments
|
|
|
|
, setuptools
|
|
|
|
, requests
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyroma";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "3.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "regebro";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0ln9w984n48nyxwzd1y48l6b18lnv52radcyizaw56lapcgxrzdr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
docutils
|
|
|
|
pygments
|
|
|
|
setuptools
|
|
|
|
requests
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
# https://github.com/regebro/pyroma/blob/3.2/Makefile#L23
|
|
|
|
# PyPITest requires network access
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest -k 'not PyPITest' pyroma.tests
|
|
|
|
'';
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyroma" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Test your project's packaging friendliness";
|
|
|
|
homepage = "https://github.com/regebro/pyroma";
|
|
|
|
license = licenses.mit;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ kamadorueda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|