2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
binaryornot,
|
|
|
|
boolean-py,
|
|
|
|
debian,
|
|
|
|
jinja2,
|
|
|
|
license-expression,
|
|
|
|
pytestCheckHook,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "reuse";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.0.2";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
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}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-ZYmQtJ503HDmu+Cd6IxOrCcOVH+CcFnFe3oe6PqvcE0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ poetry-core ];
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2020-04-24 23:36:52 +00:00
|
|
|
binaryornot
|
|
|
|
boolean-py
|
|
|
|
debian
|
|
|
|
jinja2
|
|
|
|
license-expression
|
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# pytest wants to execute the actual source files for some reason, which fails with ImportPathMismatchError()
|
|
|
|
"src/reuse"
|
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
pythonImportsCheck = [ "reuse" ];
|
|
|
|
|
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";
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/fsfe/reuse-tool/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = with licenses; [
|
|
|
|
asl20
|
|
|
|
cc-by-sa-40
|
|
|
|
cc0
|
|
|
|
gpl3Plus
|
|
|
|
];
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
FlorianFranzen
|
|
|
|
Luflosi
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "reuse";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|