2020-04-24 23:36:52 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub }:
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "reuse";
|
2021-01-15 22:18:51 +00:00
|
|
|
version = "0.12.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fsfe";
|
|
|
|
repo = "reuse-tool";
|
|
|
|
rev = "v${version}";
|
2021-01-15 22:18:51 +00:00
|
|
|
sha256 = "0ql0krnz0fmq405r2qrm9ysm3cvmqfw14j06pny6na7qshibj78z";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2020-04-24 23:36:52 +00:00
|
|
|
binaryornot
|
|
|
|
boolean-py
|
|
|
|
debian
|
|
|
|
jinja2
|
|
|
|
license-expression
|
|
|
|
requests
|
|
|
|
setuptools
|
2020-06-07 13:44:27 +00:00
|
|
|
setuptools_scm
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
checkInputs = with python3Packages; [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool for compliance with the REUSE Initiative recommendations";
|
|
|
|
homepage = "https://github.com/fsfe/reuse-tool";
|
|
|
|
license = with licenses; [ asl20 cc-by-sa-40 cc0 gpl3Plus ];
|
|
|
|
maintainers = [ maintainers.FlorianFranzen ];
|
|
|
|
};
|
|
|
|
}
|