fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
40 lines
891 B
Nix
40 lines
891 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|