svdtools: 0.1.23 -> 0.2.5

This commit is contained in:
Alex Martens 2022-07-25 07:51:50 -07:00
parent b78d6e2813
commit 59ee57505a
4 changed files with 25 additions and 49 deletions

View File

@ -0,0 +1,24 @@
{ lib
, rustPlatform
, fetchCrate
}:
rustPlatform.buildRustPackage rec {
pname = "svdtools";
version = "0.2.5";
src = fetchCrate {
inherit version pname;
sha256 = "sha256-tN1GC4tQXyaA8bgq7wB/NZEdO14p/0f8BXtgTk6aOzg=";
};
cargoSha256 = "sha256-puaveP9a11rlGgsguCfueYXfYSd7Xew8ZRGeDP8WrSI=";
meta = with lib; {
description = "Tools to handle vendor-supplied, often buggy SVD files";
homepage = "https://github.com/stm32-rs/svdtools";
changelog = "https://github.com/stm32-rs/svdtools/blob/v${version}/CHANGELOG-rust.md";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ newam ];
};
}

View File

@ -1,46 +0,0 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, braceexpand
, click
, pyyaml
, lxml
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "svdtools";
version = "0.1.23";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit version pname;
hash = "sha256-LuursRuUZEDLbk9Wbnq/S0dsZHbzIJo1YCSVFMUoiog=";
};
propagatedBuildInputs = [
braceexpand
click
pyyaml
lxml
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"svdtools"
];
meta = with lib; {
description = "Python package to handle vendor-supplied, often buggy SVD files";
homepage = "https://github.com/stm32-rs/svdtools";
changelog = "https://github.com/stm32-rs/svdtools/blob/v${version}/CHANGELOG-python.md";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ newam ];
};
}

View File

@ -14387,7 +14387,7 @@ with pkgs;
svd2rust = callPackage ../development/tools/rust/svd2rust { };
svdtools = with python3Packages; toPythonApplication svdtools;
svdtools = callPackage ../development/embedded/svdtools { };
swift = callPackage ../development/compilers/swift { };

View File

@ -10338,8 +10338,6 @@ in {
suseapi = callPackage ../development/python-modules/suseapi { };
svdtools = callPackage ../development/python-modules/svdtools { };
svg2tikz = callPackage ../development/python-modules/svg2tikz { };
svglib = callPackage ../development/python-modules/svglib { };