diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pyisemail')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pyisemail/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pyisemail/default.nix b/nixpkgs/pkgs/development/python-modules/pyisemail/default.nix new file mode 100644 index 000000000000..dfa60a85eaf6 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pyisemail/default.nix @@ -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 ]; + }; +} |