Merge pull request #146945 from fabaff/stacs

stacs: init at 0.2.0
This commit is contained in:
Fabian Affolter 2021-11-23 09:14:26 +01:00 committed by GitHub
commit a28e26d307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 131 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pep440";
version = "0.1.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "m1H/yqqDiFrj6tmD9jo8nDakCBZxkBPq/HtSOXMH4ZQ=";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pep440"
];
meta = with lib; {
description = "Python module to check whether versions number match PEP 440";
homepage = "https://github.com/Carreau/pep440";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, git
, mock
, pep440
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "setupmeta";
version = "3.3.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "codrsquad";
repo = pname;
rev = "v${version}";
sha256 = "21hABRiY8CTKkpFjePgBAtjs4/G5eFS3aPNMCBC41CY=";
};
checkInputs = [
git
mock
pep440
pytestCheckHook
setuptools-scm
];
disabledTests = [
# Tests want to scan site-packages
"test_check_dependencies"
"test_scenario"
"test_git_versioning"
];
pythonImportsCheck = [
"setupmeta"
];
meta = with lib; {
description = "Python module to simplify setup.py files";
homepage = "https://github.com/codrsquad/setupmeta";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -0,0 +1,42 @@
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "stacs";
version = "0.2.0";
src = fetchFromGitHub {
owner = "stacscan";
repo = pname;
rev = version;
sha256 = "00ZYdpJktqUXdzPcouHyZcOQyFm7jdFNVuDqsufOviE=";
};
nativeBuildInputs = with python3.pkgs; [
setupmeta
];
propagatedBuildInputs = with python3.pkgs; [
click
pydantic
typing-extensions
yara-python
];
checkInputs = with python3.pkgs; [
pytestCheckHook
];
pythonImportsCheck = [
"stacs"
];
meta = with lib; {
description = "Static token and credential scanner";
homepage = "https://github.com/stacscan/stacs";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -3551,6 +3551,8 @@ with pkgs;
ssmsh = callPackage ../tools/admin/ssmsh { };
stacs = callPackage ../tools/security/stacs { };
stagit = callPackage ../development/tools/stagit { };
starboard = callPackage ../applications/networking/cluster/starboard { };

View File

@ -5636,6 +5636,8 @@ in {
pep257 = callPackage ../development/python-modules/pep257 { };
pep440 = callPackage ../development/python-modules/pep440 { };
pep517 = callPackage ../development/python-modules/pep517 { };
pep8 = callPackage ../development/python-modules/pep8 { };
@ -8557,6 +8559,8 @@ in {
setproctitle = callPackage ../development/python-modules/setproctitle { };
setupmeta = callPackage ../development/python-modules/setupmeta { };
setuptools-declarative-requirements = callPackage ../development/python-modules/setuptools-declarative-requirements { };
setuptools-git = callPackage ../development/python-modules/setuptools-git { };