Merge pull request #182833 from newAM/svdtools

svdtools: 0.1.23 -> 0.2.5
This commit is contained in:
Winter 2022-07-25 18:47:32 -04:00 committed by GitHub
commit adffdeb4ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -14389,7 +14389,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 { };