3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.karton-config-extractor: init at 1.0.0

This commit is contained in:
Fabian Affolter 2021-04-14 23:01:13 +02:00
parent 5bb9bce7ed
commit 2cc36164f8
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, karton-core
, malduck
}:
buildPythonPackage rec {
pname = "karton-config-extractor";
version = "1.0.0";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = pname;
rev = "v${version}";
sha256 = "1v0zqa81yjz6hm17x9hp0iwkllymqzn84dd6r2yrhillbwnjg9bb";
};
propagatedBuildInputs = [
karton-core
malduck
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "karton.core==4.0.5" "karton-core"
'';
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "karton.config_extractor" ];
meta = with lib; {
description = "Static configuration extractor for the Karton framework";
homepage = "https://github.com/CERT-Polska/karton-config-extractor";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -3683,6 +3683,8 @@ in {
karton-classifier = callPackage ../development/python-modules/karton-classifier { };
karton-config-extractor = callPackage ../development/python-modules/karton-config-extractor { };
karton-core = callPackage ../development/python-modules/karton-core { };
kazoo = callPackage ../development/python-modules/kazoo { };