1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 19:26:02 +00:00
nixpkgs/pkgs/development/python-modules/karton-mwdb-reporter/default.nix
2021-05-19 12:57:36 +02:00

40 lines
867 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, karton-core
, mwdblib
}:
buildPythonPackage rec {
pname = "karton-mwdb-reporter";
version = "1.0.1";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = pname;
rev = "v${version}";
sha256 = "0jrn5c83nhcjny4bc879wrsgcr7mbazm51jzdkxmxyqf543cc841";
};
propagatedBuildInputs = [
karton-core
mwdblib
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "mwdblib==3.4.0" "mwdblib"
'';
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "karton.mwdb_reporter" ];
meta = with lib; {
description = "Karton service that uploads analyzed artifacts and metadata to MWDB Core";
homepage = "https://github.com/CERT-Polska/karton-mwdb-reporter";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}