Unverified Commit cb3270f4 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

stown: new package contribution (#389975)

parents 3d2195fa 11864397
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -20723,6 +20723,13 @@
    keys = [ { fingerprint = "7DCA 5615 8AB2 621F 2F32  9FF4 1C7C E491 479F A273"; } ];
    name = "Rahul Butani";
  };
  rseichter = {
    email = "nixos.org@seichter.de";
    github = "rseichter";
    githubId = 30873939;
    keys = [ { fingerprint = "6AE2 A847 23D5 6D98 5B34  0BC0 8E5F A470 9F69 E911"; } ];
    name = "Ralph Seichter";
  };
  rski = {
    name = "rski";
    email = "rom.skiad+nix@gmail.com";
+41 −0
Original line number Diff line number Diff line
{
  lib,
  python3Packages,
  fetchFromGitHub,
  tree,
  versionCheckHook,
}:
let
  version = "1.2.0";
in
python3Packages.buildPythonApplication {
  pname = "stown";
  inherit version;
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rseichter";
    repo = "stown";
    tag = version;
    hash = "sha256-iHeqmlo7be28ISJfPZ7GZC2gj2VVgt20ORnfYVToo0A=";
  };

  build-system = [
    python3Packages.setuptools
  ];

  nativeCheckInputs = [
    python3Packages.pytestCheckHook
    tree
    versionCheckHook
  ];

  meta = {
    description = "Manage file system object mapping via symlinks. Lightweight alternative to GNU Stow";
    homepage = "https://www.seichter.de/stown/";
    changelog = "https://github.com/rseichter/stown/blob/${version}/CHANGELOG.md";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ rseichter ];
    mainProgram = "stown";
  };
}