2023-02-19 17:42:00 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pygithub,
|
|
|
|
python-gitlab,
|
|
|
|
}:
|
2021-01-08 16:47:50 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "criticality_score";
|
2023-02-26 09:51:01 +00:00
|
|
|
version = "1.0.8";
|
2021-01-08 16:47:50 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-5XkVT0blnLG158a01jDfQl1Rx9U1LMsqaMjTdN7Q4QQ=";
|
2021-01-08 16:47:50 +00:00
|
|
|
};
|
|
|
|
|
2023-02-19 17:42:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pygithub
|
|
|
|
python-gitlab
|
|
|
|
];
|
2021-01-08 16:47:50 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "criticality_score" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python tool for computing the Open Source Project Criticality Score";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "criticality_score";
|
2021-01-08 16:47:50 +00:00
|
|
|
homepage = "https://github.com/ossf/criticality_score";
|
2023-02-26 11:05:27 +00:00
|
|
|
changelog = "https://github.com/ossf/criticality_score/releases/tag/v${version}";
|
2021-01-08 16:47:50 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ wamserma ];
|
|
|
|
};
|
|
|
|
}
|