mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
python311Packages.ldfparser: init at 0.21.0
LDF Language support for Python https://github.com/c4deszes/ldfparser
This commit is contained in:
parent
8cfef6986a
commit
0a73bb5777
58
pkgs/development/python-modules/ldfparser/default.nix
Normal file
58
pkgs/development/python-modules/ldfparser/default.nix
Normal file
@ -0,0 +1,58 @@
|
||||
{ lib
|
||||
, bitstruct
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, jinja2
|
||||
, jsonschema
|
||||
, lark
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ldfparser";
|
||||
version = "0.21.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "c4deszes";
|
||||
repo = "ldfparser";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-4uwze9TJYmNvhDiKYyUX6Ya+eQb0mbpQQaawUWmO3Gs=";
|
||||
};
|
||||
|
||||
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";
|
||||
homepage = "https://github.com/c4deszes/ldfparser";
|
||||
changelog = "https://github.com/c4deszes/ldfparser/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -6110,6 +6110,8 @@ self: super: with self; {
|
||||
|
||||
ldaptor = callPackage ../development/python-modules/ldaptor { };
|
||||
|
||||
ldfparser = callPackage ../development/python-modules/ldfparser { };
|
||||
|
||||
leather = callPackage ../development/python-modules/leather { };
|
||||
|
||||
leb128 = callPackage ../development/python-modules/leb128 { };
|
||||
|
Loading…
Reference in New Issue
Block a user