Merge pull request #280902 from fabaff/pack

packj: init at 0.15-beta, python311Packages.pyisemail: init at 2.0.1
This commit is contained in:
Fabian Affolter 2024-01-16 09:48:09 +01:00 committed by GitHub
commit 0b201880fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 111 additions and 0 deletions

View File

@ -0,0 +1,62 @@
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "packj";
version = "0.15-beta";
pyproject = true;
src = fetchFromGitHub {
owner = "ossillate-inc";
repo = "packj";
rev = "refs/tags/v${version}";
hash = "sha256-OWcJE2Gtjgoj9bCGZcHDfAFLWRP4wdENeJAnILMdUXY=";
};
preBuild = ''
export HOME=$(mktemp -d)
'';
nativeBuildInputs = with python3.pkgs; [
setuptools
wheel
];
propagatedBuildInputs = with python3.pkgs; [
asttokens
colorama
django
dnspython
esprima
func-timeout
github3-py
gitpython
networkx
protobuf
pyisemail
python-dateutil
python-gitlab
python-magic
pytz
pyyaml
rarfile
requests
six
tldextract
];
pythonImportsCheck = [
"packj"
];
meta = with lib; {
description = "Tool to detect malicious/vulnerable open-source dependencies";
homepage = "https://github.com/ossillate-inc/packj";
changelog = "https://github.com/ossillate-inc/packj/releases/tag/v${version}";
license = licenses.agpl3Only;
maintainers = with maintainers; [ fab ];
mainProgram = "packj";
};
}

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, dnspython
, fetchFromGitHub
, hatchling
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyisemail";
version = "2.0.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "michaelherold";
repo = "pyIsEmail";
rev = "refs/tags/v${version}";
hash = "sha256-bJCaVUhvEAoQ8zMsbcb1Et728XHt+shEPhhBzPzY/vo=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
dnspython
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pyisemail"
];
meta = with lib; {
description = "Module for email validation";
homepage = "https://github.com/michaelherold/pyIsEmail";
changelog = "https://github.com/michaelherold/pyIsEmail/blob/${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -9445,6 +9445,8 @@ self: super: with self; {
pyinstaller-versionfile = callPackage ../development/python-modules/pyinstaller-versionfile { };
pyisemail = callPackage ../development/python-modules/pyisemail { };
pyisy = callPackage ../development/python-modules/pyisy { };
pyixapi = callPackage ../development/python-modules/pyixapi { };