|
|
|
@ -11,22 +11,16 @@ |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
pname = "svdtools"; |
|
|
|
|
version = "0.1.21"; |
|
|
|
|
version = "0.1.22"; |
|
|
|
|
format = "setuptools"; |
|
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8"; |
|
|
|
|
|
|
|
|
|
src = fetchPypi { |
|
|
|
|
inherit version pname; |
|
|
|
|
sha256 = "0qc94haqkj4dbhify1l3x0ji1dx34m79nfnsk1c7l1kl2zjvz6bz"; |
|
|
|
|
hash = "sha256-5zMuCFCvh7BXr9BbyyDhWw1Lt/Fomv0SALiPJQbxJNQ="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
# remove upon next release |
|
|
|
|
# see: https://github.com/stm32-rs/svdtools/pull/96 |
|
|
|
|
prePatch = '' |
|
|
|
|
substituteInPlace setup.py \ |
|
|
|
|
--replace 'PyYAML ~= 5.3' 'PyYAML >= 5.3' |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
|
braceexpand |
|
|
|
|
click |
|
|
|
@ -34,9 +28,13 @@ buildPythonPackage rec { |
|
|
|
|
lxml |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ]; |
|
|
|
|
checkInputs = [ |
|
|
|
|
pytestCheckHook |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "svdtools" ]; |
|
|
|
|
pythonImportsCheck = [ |
|
|
|
|
"svdtools" |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
description = "Python package to handle vendor-supplied, often buggy SVD files"; |
|
|
|
|