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

with python3Packages;

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

  src = fetchFromGitHub {
    owner = "fsfe";
    repo = "reuse-tool";
    rev = "v${version}";
    sha256 = "0gwipwikhxsk0p8wvdl90xm7chfi2jywb1namzznyymifl1vsbgh";
  };

  propagatedBuildInputs = [ debian license-expression requests ];

  checkInputs = [ pytest ];

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