2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, bitstruct
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, jinja2
|
|
|
|
, jsonschema
|
|
|
|
, lark
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ldfparser";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.24.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c4deszes";
|
|
|
|
repo = "ldfparser";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-+7L2WCQEDpWPDBPVt4ddoz0U4YkJ9GqQqp0cKj2fAXM=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bitstruct
|
|
|
|
jinja2
|
|
|
|
lark
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
jsonschema
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"ldfparser"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# We don't care about benchmarks
|
|
|
|
"tests/test_performance.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "LIN Description File parser written in Python";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ldfparser";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/c4deszes/ldfparser";
|
|
|
|
changelog = "https://github.com/c4deszes/ldfparser/blob/${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|