My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyroma/default.nix

43 lines
872 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, docutils
, python
, pygments
, setuptools
, requests
}:
buildPythonPackage rec {
pname = "pyroma";
version = "3.2";
src = fetchFromGitHub {
owner = "regebro";
repo = pname;
rev = version;
sha256 = "0ln9w984n48nyxwzd1y48l6b18lnv52radcyizaw56lapcgxrzdr";
};
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
'';
pythonImportsCheck = [ "pyroma" ];
meta = with lib; {
description = "Test your project's packaging friendliness";
homepage = "https://github.com/regebro/pyroma";
license = licenses.mit;
maintainers = with maintainers; [ kamadorueda ];
};
}