python3Packages.karton-mwdb-reporter: 1.0.1 -> unstable-2022-02-22

This commit is contained in:
Fabian Affolter 2022-02-24 18:38:53 +01:00
parent fc77f3d739
commit 1047224132

View File

@ -3,17 +3,21 @@
, fetchFromGitHub
, karton-core
, mwdblib
, pythonOlder
}:
buildPythonPackage rec {
pname = "karton-mwdb-reporter";
version = "1.0.1";
version = "unstable-2022-02-22";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = pname;
rev = "v${version}";
sha256 = "0jrn5c83nhcjny4bc879wrsgcr7mbazm51jzdkxmxyqf543cc841";
rev = "1afa32251b4826eac4386596b4a20f295699faec";
hash = "sha256-dbtIjWSNIRMccrGJspZMOBUD2EzuvW7xESlEwiOhKfQ=";
};
propagatedBuildInputs = [
@ -21,14 +25,12 @@ buildPythonPackage rec {
mwdblib
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "mwdblib==3.4.0" "mwdblib"
'';
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "karton.mwdb_reporter" ];
pythonImportsCheck = [
"karton.mwdb_reporter"
];
meta = with lib; {
description = "Karton service that uploads analyzed artifacts and metadata to MWDB Core";