about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/as/asn1editor/package.nix
blob: 07941a7762c491dd91deffa0aff785edcd948a36 (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
35
36
37
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "asn1editor";
  version = "0.8.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "Futsch1";
    repo = "asn1editor";
    rev = "v${version}";
    hash = "sha256-mgluhC2DMS4OyS/BoWqBdVf7GcxquOtOKTHZ/hbiHQM=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    asn1tools
    coverage
    wxpython
  ];

  pythonImportsCheck = [ "asn1editor" ];

  # Tests fail in sandbox, e.g.
  # "SystemExit: Unable to access the X Display, is $DISPLAY set properly?"
  doCheck = false;

  meta = with lib; {
    description = "Python based editor for ASN.1 encoded data";
    homepage = "https://github.com/Futsch1/asn1editor";
    license = licenses.mit;
    mainProgram = "asn1editor";
    maintainers = with maintainers; [ bjornfor ];
  };
}