diff --git a/pkgs/development/python-modules/fqdn/default.nix b/pkgs/development/python-modules/fqdn/default.nix new file mode 100644 index 000000000000..cff62be2afff --- /dev/null +++ b/pkgs/development/python-modules/fqdn/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "fqdn"; + version = "1.5.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "ypcrts"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-T0CdWWr8p3JVhp3nol5hyxsrD3951JE2EDpFt+m+3bE="; + }; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "fqdn" + ]; + + meta = with lib; { + description = "RFC-compliant FQDN validation and manipulation"; + homepage = "https://github.com/ypcrts/fqdn"; + license = licenses.mpl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e21f2a078247..16c87e27223f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3170,6 +3170,8 @@ in { fpyutils = callPackage ../development/python-modules/fpyutils { }; + fqdn = callPackage ../development/python-modules/fqdn { }; + freebox-api = callPackage ../development/python-modules/freebox-api { }; freetype-py = callPackage ../development/python-modules/freetype-py { };