2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
karton-core,
|
|
|
|
malduck,
|
|
|
|
pythonOlder,
|
2021-04-17 00:35:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "karton-config-extractor";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.2.0";
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-17 00:35:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CERT-Polska";
|
|
|
|
repo = pname;
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-X2g/wgWLIY2ZIwH1l83EApyoeYQU5/MWq5S0qmYz+CA=";
|
2021-04-17 00:35:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
karton-core
|
|
|
|
malduck
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-05-03 20:48:10 +00:00
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "malduck==4.1.0" "malduck"
|
2021-04-17 00:35:05 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "karton.config_extractor" ];
|
2021-04-17 00:35:05 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Static configuration extractor for the Karton framework";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "karton-config-extractor";
|
2021-04-17 00:35:05 +00:00
|
|
|
homepage = "https://github.com/CERT-Polska/karton-config-extractor";
|
2023-02-16 17:41:37 +00:00
|
|
|
changelog = "https://github.com/CERT-Polska/karton-config-extractor/releases/tag/v${version}";
|
2021-04-17 00:35:05 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|