about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/package-management/reuse/default.nix
blob: 4e2c8a7b3a7a53d22ed0f4d61e353b700edaa496 (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
{ lib, python3Packages, fetchFromGitLab }:

with python3Packages;

buildPythonApplication rec {
  pname = "reuse";
  version = "0.3.4";

  src = fetchFromGitLab {
    owner = "reuse";
    repo = "reuse";
    rev = "v${version}";
    sha256 = "07acv02wignrsfhym2i3dhlcs501yj426lnff2cjampl6m5cgsk3";
  };

  propagatedBuildInputs = [ chardet debian pygit2 ];

  checkInputs = [ pytest jinja2 ];

  # Some path based tests are currently broken under nix
  checkPhase = ''
    pytest tests -k "not test_lint_none and not test_lint_ignore_debian and not test_lint_twice_path"
  '';

  meta = with lib; {
    description = "A tool for compliance with the REUSE Initiative recommendations";
    license = with licenses; [ cc-by-sa-40 cc0 gpl3 ];
    maintainers = [ maintainers.FlorianFranzen ];
  };
}