3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyroma/default.nix

44 lines
872 B
Nix
Raw Normal View History

2021-07-07 16:22:08 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, docutils
, 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
];
# 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
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;
maintainers = with maintainers; [ kamadorueda ];
2020-04-10 20:40:18 +01:00
};
}