nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 importlib-resources, 6 pydsdl, 7 pyyaml, 8}: 9 10buildPythonPackage rec { 11 pname = "nunavut"; 12 version = "2.3.1"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-23C3biUUs10Po5qzn3EFaq4+HeWCXIC6WzxOKy59VgM="; 18 }; 19 20 postPatch = '' 21 substituteInPlace setup.cfg \ 22 --replace "pydsdl ~= 1.16" "pydsdl" 23 ''; 24 25 propagatedBuildInputs = [ 26 importlib-resources 27 pydsdl 28 pyyaml 29 ]; 30 31 # allow for writable directory for darwin 32 preBuild = '' 33 export HOME=$TMPDIR 34 ''; 35 36 # No tests in pypy package and no git tags yet for release versions, see 37 # https://github.com/UAVCAN/nunavut/issues/182 38 doCheck = false; 39 40 pythonImportsCheck = [ "nunavut" ]; 41 42 meta = { 43 description = "UAVCAN DSDL template engine"; 44 mainProgram = "nnvg"; 45 longDescription = '' 46 It exposes a pydsdl abstract syntax tree to Jinja2 templates allowing 47 authors to generate code, schemas, metadata, documentation, etc. 48 ''; 49 homepage = "https://nunavut.readthedocs.io/"; 50 changelog = "https://github.com/OpenCyphal/nunavut/releases/tag/${version}"; 51 maintainers = with lib.maintainers; [ wucke13 ]; 52 license = with lib.licenses; [ 53 bsd3 54 mit 55 ]; 56 }; 57}