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

44 lines
872 B
Nix
Raw Normal View History

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