mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 21:04:30 +00:00
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:
commit
0b201880fe
62
pkgs/by-name/pa/packj/package.nix
Normal file
62
pkgs/by-name/pa/packj/package.nix
Normal 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";
|
||||
};
|
||||
}
|
47
pkgs/development/python-modules/pyisemail/default.nix
Normal file
47
pkgs/development/python-modules/pyisemail/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user