about summary refs log tree commit diff
path: root/pkgs/development/python-modules/cmsis-svd/default.nix
blob: 030b6d282276475b9695bd003353479f6b14d220 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  six,
}:

buildPythonPackage rec {
  pname = "cmsis-svd";
  version = "0.4";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "posborne";
    repo = pname;
    rev = "python-${version}";
    sha256 = "01f2z01gqgx0risqnbrlaqj49fmly30zbwsf7rr465ggnl2c04r0";
  };

  preConfigure = ''
    cd python
  '';

  propagatedBuildInputs = [ six ];

  pythonImportsCheck = [ "cmsis_svd" ];

  meta = with lib; {
    description = "CMSIS SVD parser";
    homepage = "https://github.com/posborne/cmsis-svd";
    maintainers = with maintainers; [ dump_stack ];
    license = licenses.asl20;
  };
}