567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
34 lines
682 B
Nix
34 lines
682 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromSourcehut,
|
|
flit-core,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "loca";
|
|
version = "2.0.1";
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~cnx";
|
|
repo = "loca";
|
|
rev = version;
|
|
sha256 = "1l6jimw3wd81nz1jrzsfw1zzsdm0jm998xlddcqaq0h38sx69w8g";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
doCheck = false; # all checks are static analyses
|
|
pythonImportsCheck = [ "loca" ];
|
|
|
|
meta = {
|
|
description = "Local locations";
|
|
homepage = "https://pypi.org/project/loca";
|
|
license = lib.licenses.lgpl3Plus;
|
|
maintainers = [ lib.maintainers.McSinyx ];
|
|
};
|
|
}
|