1{ lib, buildPythonPackage, fetchPypi, pygithub, python-gitlab }:
2
3buildPythonPackage rec {
4 pname = "criticality_score";
5 version = "1.0.8";
6
7 src = fetchPypi {
8 inherit pname version;
9 hash = "sha256-5XkVT0blnLG158a01jDfQl1Rx9U1LMsqaMjTdN7Q4QQ=";
10 };
11
12 propagatedBuildInputs = [ pygithub python-gitlab ];
13
14 doCheck = false;
15
16 pythonImportsCheck = [ "criticality_score" ];
17
18 meta = with lib; {
19 description = "Python tool for computing the Open Source Project Criticality Score.";
20 homepage = "https://github.com/ossf/criticality_score";
21 changelog = "https://github.com/ossf/criticality_score/releases/tag/v${version}";
22 license = licenses.asl20;
23 maintainers = with maintainers; [ wamserma ];
24 };
25}