nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.0 kB view raw
1{ 2 lib, 3 bitstruct, 4 buildPythonPackage, 5 fetchFromGitHub, 6 jinja2, 7 jsonschema, 8 lark, 9 pytestCheckHook, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "ldfparser"; 15 version = "0.26.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "c4deszes"; 20 repo = "ldfparser"; 21 tag = "v${version}"; 22 hash = "sha256-SVl/O0/2k1Y4lta+3BFkddyBZfYO2vqh4Xx1ZXNwXN4="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ 28 bitstruct 29 jinja2 30 lark 31 ]; 32 33 nativeCheckInputs = [ 34 jsonschema 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ "ldfparser" ]; 39 40 disabledTestPaths = [ 41 # We don't care about benchmarks 42 "tests/test_performance.py" 43 ]; 44 45 meta = { 46 description = "LIN Description File parser written in Python"; 47 homepage = "https://github.com/c4deszes/ldfparser"; 48 changelog = "https://github.com/c4deszes/ldfparser/blob/${version}/CHANGELOG.md"; 49 license = lib.licenses.mit; 50 maintainers = with lib.maintainers; [ fab ]; 51 mainProgram = "ldfparser"; 52 }; 53}