Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / karton-config-extractor / default.nix
blob90ede387f922495871b90876814a77a313f1719e
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , karton-core
5 , malduck
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "karton-config-extractor";
11   version = "2.2.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "CERT-Polska";
18     repo = pname;
19     rev = "refs/tags/v${version}";
20     hash = "sha256-X2g/wgWLIY2ZIwH1l83EApyoeYQU5/MWq5S0qmYz+CA=";
21   };
23   propagatedBuildInputs = [
24     karton-core
25     malduck
26   ];
28   postPatch = ''
29     substituteInPlace requirements.txt \
30       --replace "malduck==4.1.0" "malduck"
31   '';
33   # Project has no tests
34   doCheck = false;
36   pythonImportsCheck = [
37     "karton.config_extractor"
38   ];
40   meta = with lib; {
41     description = "Static configuration extractor for the Karton framework";
42     mainProgram = "karton-config-extractor";
43     homepage = "https://github.com/CERT-Polska/karton-config-extractor";
44     changelog = "https://github.com/CERT-Polska/karton-config-extractor/releases/tag/v${version}";
45     license = with licenses; [ bsd3 ];
46     maintainers = with maintainers; [ fab ];
47   };