1 { pkgs ? import <nixpkgs> { }, lint ? false }:
2 pkgs.python3Packages.callPackage
3 ({ lib, buildPythonPackage, autopep8, mypy, pylint, }:
4 buildPythonPackage rec {
5 pname = "nix-pin-deps";
7 src = lib.cleanSource ./.;
8 nativeCheckInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ];
11 ./test.sh ${lib.optionalString lint "lint"}
14 description = "GC-pin dependencies of a partially-built derivation";
15 homepage = "https://git.scottworley.com/nix-pin-deps";
16 license = pkgs.lib.licenses.gpl3;
17 maintainers = with pkgs.lib.maintainers; [ chkno ];