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";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "1.1.2";
|
2022-12-17 10:02:37 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fsfe";
|
|
|
|
repo = "reuse-tool";
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-J+zQrokrAX5tRU/2RPPSaFDyfsACPHHQYbK5sO99CMs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
setuptools
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = 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 ];
|
2022-12-17 10:02:37 +00:00
|
|
|
maintainers = with maintainers; [ FlorianFranzen Luflosi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|