Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 six, 7 lxml, 8}: 9 10buildPythonPackage rec { 11 pname = "cmsis-svd"; 12 version = "0.6"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "cmsis-svd"; 17 repo = "cmsis-svd"; 18 tag = "python-${version}"; 19 hash = "sha256-fx9eR9/Nw/oxPaP9rm1G6sjGI7iU4bhkmTS7f8i2RrQ="; 20 }; 21 22 preBuild = '' 23 cd python 24 ''; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 six 30 lxml 31 ]; 32 33 pythonImportsCheck = [ 34 "cmsis_svd" 35 "cmsis_svd.parser" 36 ]; 37 38 meta = { 39 description = "CMSIS SVD parser"; 40 homepage = "https://github.com/cmsis-svd/cmsis-svd"; 41 changelog = "https://github.com/cmsis-svd/cmsis-svd/blob/${src.rev}/CHANGELOG"; 42 maintainers = [ lib.maintainers.dump_stack ]; 43 license = lib.licenses.asl20; 44 }; 45}