about summary refs log tree commit diff
path: root/pkgs/by-name/np/npm-lockfile-fix/package.nix
blob: 8e5564172dafa564dcfd5c1b9fcb2db43841cc34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib
, python3
, fetchFromGitHub
, nix-update-script
}:


python3.pkgs.buildPythonApplication rec {
  pname = "npm-lockfile-fix";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "jeslie0";
    repo = "npm-lockfile-fix";
    rev = "v${version}";
    hash = "sha256-0EGPCPmCf6bxbso3aHCeJ1XBOpYp3jtMXv8LGdwrsbs=";
  };

  propagatedBuildInputs = [
    python3.pkgs.requests
  ];

  doCheck = false; # no tests

  passthru.updateScript = nix-update-script {};

  meta = with lib; {
    description = "Add missing integrity and resolved fields to a package-lock.json file";
    mainProgram = "npm-lockfile-fix";
    license = lib.licenses.mit;
    maintainers = [ maintainers.lucasew ];
  };
}