depot/third_party/nixpkgs/pkgs/development/python-modules/pyroma/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

67 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonAtLeast
# build-system
, setuptools
# dependencies
, build
, docutils
, flit-core
, packaging
, pygments
, requests
, trove-classifiers
# test
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyroma";
version = "4.2";
pyproject = true;
# https://github.com/regebro/pyroma/issues/104
disabled = pythonAtLeast "3.12";
src = fetchFromGitHub {
owner = "regebro";
repo = "pyroma";
rev = version;
sha256 = "sha256-ElSw+bY6fbHJPTX7O/9JZ4drttfbUQsU/fv3Cqqb/J4=";
};
propagatedBuildInputs = [
build
docutils
flit-core
packaging
pygments
setuptools
requests
trove-classifiers
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# tries to reach pypi
"test_complete"
"test_distribute"
];
pythonImportsCheck = [ "pyroma" ];
meta = with lib; {
description = "Test your project's packaging friendliness";
mainProgram = "pyroma";
homepage = "https://github.com/regebro/pyroma";
license = licenses.mit;
maintainers = with maintainers; [ kamadorueda ];
};
}