Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 274ec595ed50
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: aaf2043a1518
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jun 15, 2019

  1. reuse: init at 0.3.4

    FlorianFranzen authored and Lassulus committed Jun 15, 2019
    Copy the full SHA
    aaf2043 View commit details
Showing with 32 additions and 0 deletions.
  1. +30 −0 pkgs/tools/package-management/reuse/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
30 changes: 30 additions & 0 deletions pkgs/tools/package-management/reuse/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -5616,6 +5616,8 @@ in

rescuetime = callPackage ../applications/misc/rescuetime { };

reuse = callPackage ../tools/package-management/reuse { };

rewritefs = callPackage ../os-specific/linux/rewritefs { };

rdiff-backup = callPackage ../tools/backup/rdiff-backup { };