2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromSourcehut,
|
|
|
|
flit-core,
|
|
|
|
}:
|
2021-08-08 23:34:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "loca";
|
|
|
|
version = "2.0.1";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
2021-08-08 23:34:03 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~cnx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1l6jimw3wd81nz1jrzsfw1zzsdm0jm998xlddcqaq0h38sx69w8g";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|