at master 1.0 kB view raw
1{ 2 lib, 3 4 buildPythonPackage, 5 fetchFromGitHub, 6 7 # build-system 8 setuptools, 9 setuptools-scm, 10 11 # dependencies 12 lxml, 13 trimesh, 14 numpy, 15 six, 16 17 # nativeCheckInputs 18 pytestCheckHook, 19 pytest-cov-stub, 20}: 21 22buildPythonPackage rec { 23 pname = "yourdfpy"; 24 version = "0.0.58"; 25 pyproject = true; 26 27 src = fetchFromGitHub { 28 owner = "clemense"; 29 repo = "yourdfpy"; 30 tag = "v${version}"; 31 hash = "sha256-Wi4QcgTOf/1nXWssFtlyRxql8Jg1nNKjEGkWuP+w73g="; 32 }; 33 34 build-system = [ 35 setuptools 36 setuptools-scm 37 ]; 38 39 dependencies = [ 40 lxml 41 trimesh 42 numpy 43 six 44 ]; 45 46 nativeCheckInputs = [ 47 pytestCheckHook 48 pytest-cov-stub 49 ]; 50 51 pythonImportsCheck = [ 52 "yourdfpy" 53 ]; 54 55 meta = { 56 description = "Python parser for URDFs"; 57 homepage = "https://github.com/clemense/yourdfpy/"; 58 changelog = "https://github.com/clemense/yourdfpy/blob/${src.tag}/CHANGELOG.md"; 59 license = lib.licenses.mit; 60 maintainers = with lib.maintainers; [ nim65s ]; 61 mainProgram = "yourdfpy"; 62 }; 63}