]> git.scottworley.com Git - hellowebpy/blame - default.nix
Follow nixpkgs rename: checkInputs → nativeCheckInputs
[hellowebpy] / default.nix
CommitLineData
f95935ab
SW
1{ pkgs ? import <nixpkgs> { }, lint ? false }:
2
3pkgs.python3Packages.callPackage
4({ autopep8, buildPythonPackage, curl, lib, mypy, pylint, }:
5 buildPythonPackage rec {
6 pname = "hellowebpy";
fe7b4edd 7 version = "1.0.1-pre";
f95935ab
SW
8 src = lib.cleanSource ./.;
9 PIP_DISABLE_PIP_VERSION_CHECK = 1;
b4f6be86 10 nativeCheckInputs = [ curl mypy ] ++ lib.optionals lint [ autopep8 pylint ];
f95935ab
SW
11 doCheck = true;
12 checkPhase = "./test.sh";
13 meta = {
14 description = "A minimal 'hello world' python web server.";
15 homepage = "https://git.scottworley.com/hellowebpy";
16 license = pkgs.lib.licenses.gpl3;
17 maintainers = with pkgs.lib.maintainers; [ chkno ];
18 };
19 }) { }