about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/wavedrom/default.nix
blob: 32fa68a9dabd402b0d2b0ce34c92147cce566713 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{ lib
, attrdict
, buildPythonPackage
, cairosvg
, fetchPypi
, pillow
, pytestCheckHook
, pyyaml
, setuptools-scm
, six
, svgwrite
, xmldiff
}:

buildPythonPackage rec {
  pname = "wavedrom";
  version = "2.0.3.post3";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-MntNXcpZPIElfCAv6lFvepCHR/sRUnw1nwNPW3r39Hs=";
  };

  nativeBuildInputs = [
    setuptools-scm
  ];

  propagatedBuildInputs = [
    attrdict
    pyyaml
    svgwrite
    six
  ];

  nativeCheckInputs = [
    cairosvg
    pillow
    pytestCheckHook
    xmldiff
  ];

  disabledTests = [
    # Requires to clone a full git repository
    "test_upstream"
  ];

  pythonImportsCheck = [
    "wavedrom"
  ];

  meta = with lib; {
    description = "WaveDrom compatible Python command line";
    homepage = "https://github.com/wallento/wavedrompy";
    license = licenses.mit;
    maintainers = with maintainers; [ airwoodix ];
  };
}