nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, braceexpand
6, click
7, pyyaml
8, lxml
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "svdtools";
14 version = "0.1.23";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 inherit version pname;
21 hash = "sha256-LuursRuUZEDLbk9Wbnq/S0dsZHbzIJo1YCSVFMUoiog=";
22 };
23
24 propagatedBuildInputs = [
25 braceexpand
26 click
27 pyyaml
28 lxml
29 ];
30
31 checkInputs = [
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "svdtools"
37 ];
38
39 meta = with lib; {
40 description = "Python package to handle vendor-supplied, often buggy SVD files";
41 homepage = "https://github.com/stm32-rs/svdtools";
42 changelog = "https://github.com/stm32-rs/svdtools/blob/v${version}/CHANGELOG-python.md";
43 license = with licenses; [ asl20 /* or */ mit ];
44 maintainers = with maintainers; [ newam ];
45 };
46}