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>
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
bitstruct,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
jinja2,
|
|
jsonschema,
|
|
lark,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ldfparser";
|
|
version = "0.26.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "c4deszes";
|
|
repo = "ldfparser";
|
|
tag = "v${version}";
|
|
hash = "sha256-SVl/O0/2k1Y4lta+3BFkddyBZfYO2vqh4Xx1ZXNwXN4=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
bitstruct
|
|
jinja2
|
|
lark
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
jsonschema
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "ldfparser" ];
|
|
|
|
disabledTestPaths = [
|
|
# We don't care about benchmarks
|
|
"tests/test_performance.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "LIN Description File parser written in Python";
|
|
homepage = "https://github.com/c4deszes/ldfparser";
|
|
changelog = "https://github.com/c4deszes/ldfparser/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "ldfparser";
|
|
};
|
|
}
|