stacs: 0.2.0 -> 0.5.1

Diff: https://github.com/stacscan/stacs/compare/0.2.0...0.5.1

natsukium 9c070c95 63dd26ed

+26 -10
+26 -10
pkgs/by-name/st/stacs/package.nix
··· 2 2 lib, 3 3 fetchFromGitHub, 4 4 python3, 5 + libarchive, 5 6 }: 6 7 7 8 python3.pkgs.buildPythonApplication rec { 8 9 pname = "stacs"; 9 - version = "0.2.0"; 10 + version = "0.5.1"; 11 + pyproject = true; 10 12 11 13 src = fetchFromGitHub { 12 14 owner = "stacscan"; 13 15 repo = "stacs"; 14 - rev = version; 15 - sha256 = "00ZYdpJktqUXdzPcouHyZcOQyFm7jdFNVuDqsufOviE="; 16 + tag = version; 17 + hash = "sha256-u0yFzId5RAOnJfTDPRUc8E624zIWyCDe3/WlrJ5iuxA="; 16 18 }; 17 19 18 - nativeBuildInputs = with python3.pkgs; [ 19 - setupmeta 20 + # remove upstream workaround for darwin 21 + postPatch = '' 22 + substituteInPlace setup.py \ 23 + --replace-fail 'if platform.system() == "Darwin":' "if False:" 24 + ''; 25 + 26 + buildInputs = [ libarchive ]; 27 + 28 + build-system = with python3.pkgs; [ 29 + pybind11 30 + setuptools 31 + setuptools-scm 20 32 ]; 21 33 22 - propagatedBuildInputs = with python3.pkgs; [ 34 + dependencies = with python3.pkgs; [ 23 35 click 36 + colorama 24 37 pydantic_1 25 - typing-extensions 26 38 yara-python 39 + zstandard 27 40 ]; 28 41 42 + pythonRelaxDeps = [ "yara-python" ]; 43 + 29 44 nativeCheckInputs = with python3.pkgs; [ 45 + pytest-cov-stub 30 46 pytestCheckHook 31 47 ]; 32 48 ··· 34 50 "stacs" 35 51 ]; 36 52 37 - meta = with lib; { 53 + meta = { 38 54 description = "Static token and credential scanner"; 39 55 mainProgram = "stacs"; 40 56 homepage = "https://github.com/stacscan/stacs"; 41 - license = with licenses; [ bsd3 ]; 42 - maintainers = with maintainers; [ fab ]; 57 + license = with lib.licenses; [ bsd3 ]; 58 + maintainers = with lib.maintainers; [ fab ]; 43 59 }; 44 60 }