diff --git a/pkgs/development/python-modules/loca/default.nix b/pkgs/development/python-modules/loca/default.nix new file mode 100644 index 000000000000..8ad0a4adbe74 --- /dev/null +++ b/pkgs/development/python-modules/loca/default.nix @@ -0,0 +1,25 @@ +{ lib, buildPythonPackage, pythonOlder, fetchFromSourcehut }: + +buildPythonPackage rec { + pname = "loca"; + version = "2.0.1"; + format = "flit"; + disabled = pythonOlder "3.7"; + + src = fetchFromSourcehut { + owner = "~cnx"; + repo = pname; + rev = version; + sha256 = "1l6jimw3wd81nz1jrzsfw1zzsdm0jm998xlddcqaq0h38sx69w8g"; + }; + + doCheck = false; # all checks are static analyses + pythonImportsCheck = [ "loca" ]; + + meta = with lib; { + description = "Local locations"; + homepage = "https://pypi.org/project/loca"; + license = licenses.lgpl3Plus; + maintainers = [ maintainers.McSinyx ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c44706c1df61..6fb9372943ea 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4232,6 +4232,8 @@ in { lmtpd = callPackage ../development/python-modules/lmtpd { }; + loca = callPackage ../development/python-modules/loca { }; + localimport = callPackage ../development/python-modules/localimport { }; localzone = callPackage ../development/python-modules/localzone { };