2021-07-07 16:22:08 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, docutils
|
2021-08-15 19:27:06 +01:00
|
|
|
, python
|
2021-07-07 16:22:08 +01:00
|
|
|
, pygments
|
|
|
|
, setuptools
|
|
|
|
, requests
|
2020-04-10 20:40:18 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyroma";
|
2021-07-07 16:11:06 +01:00
|
|
|
version = "3.2";
|
2020-04-10 20:40:18 +01:00
|
|
|
|
2021-07-07 16:22:08 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "regebro";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0ln9w984n48nyxwzd1y48l6b18lnv52radcyizaw56lapcgxrzdr";
|
2020-04-10 20:40:18 +01:00
|
|
|
};
|
|
|
|
|
2021-07-07 16:22:08 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
docutils
|
|
|
|
pygments
|
|
|
|
setuptools
|
|
|
|
requests
|
|
|
|
];
|
2021-02-20 23:20:23 +00:00
|
|
|
|
2021-08-15 19:27:06 +01: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-07-07 16:22:08 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyroma" ];
|
2020-04-10 20:40:18 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-10 20:40:18 +01:00
|
|
|
description = "Test your project's packaging friendliness";
|
|
|
|
homepage = "https://github.com/regebro/pyroma";
|
|
|
|
license = licenses.mit;
|
2021-08-15 19:27:06 +01:00
|
|
|
maintainers = with maintainers; [ kamadorueda ];
|
2020-04-10 20:40:18 +01:00
|
|
|
};
|
|
|
|
}
|