reuse: init at 0.3.4
This commit is contained in:
parent
274ec595ed
commit
aaf2043a15
2 changed files with 32 additions and 0 deletions
30
pkgs/tools/package-management/reuse/default.nix
Normal file
30
pkgs/tools/package-management/reuse/default.nix
Normal file
|
@ -0,0 +1,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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -5616,6 +5616,8 @@ in
|
||||||
|
|
||||||
rescuetime = callPackage ../applications/misc/rescuetime { };
|
rescuetime = callPackage ../applications/misc/rescuetime { };
|
||||||
|
|
||||||
|
reuse = callPackage ../tools/package-management/reuse { };
|
||||||
|
|
||||||
rewritefs = callPackage ../os-specific/linux/rewritefs { };
|
rewritefs = callPackage ../os-specific/linux/rewritefs { };
|
||||||
|
|
||||||
rdiff-backup = callPackage ../tools/backup/rdiff-backup { };
|
rdiff-backup = callPackage ../tools/backup/rdiff-backup { };
|
||||||
|
|
Loading…
Reference in a new issue