]> git.scottworley.com Git - rfc1751/blob - default.nix
2374f72e9c47e707ac8807a0ffb5869a7cb4bc7a
[rfc1751] / default.nix
1 {
2 pkgs ? import <nixpkgs> { },
3 lint ? false,
4 }:
5 pkgs.python3Packages.callPackage (
6 {
7 lib,
8 buildPythonPackage,
9 mypy,
10 autopep8,
11 pylint,
12 }:
13 buildPythonPackage rec {
14 pname = "rfc1751";
15 version = "1.0.0";
16 src = lib.cleanSource ./.;
17 nativeCheckInputs = [
18 mypy
19 ]
20 ++ lib.optionals lint [
21 autopep8
22 pylint
23 ];
24 doCheck = true;
25 checkPhase = "./test.sh";
26 meta = {
27 description = "Command line tool for RFC1751 (aka S/Key) numbers-as-word-lists";
28 homepage = "https://git.scottworley.com/rfc1751";
29 license = lib.licenses.isc;
30 maintainers = with lib.maintainers; [ chkno ];
31 };
32 }
33 ) { }