about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cmsis-svd/default.nix
blob: cdfdd05e5217016bbde262ba93a202d9cd0f6b63 (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
{ lib, buildPythonPackage, fetchFromGitHub, six }:

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

  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;
  };
}