]> git.scottworley.com Git - rfc1751/blob - default.nix
nixpkgs 25.11 pyproject boilerplate
[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 setuptools,
13 }:
14 buildPythonPackage rec {
15 pname = "rfc1751";
16 version = "1.0.0";
17 src = lib.cleanSource ./.;
18 pyproject = true;
19 build-system = [ setuptools ];
20 nativeCheckInputs = [
21 mypy
22 ]
23 ++ lib.optionals lint [
24 autopep8
25 pylint
26 ];
27 doCheck = true;
28 checkPhase = "./test.sh";
29 meta = {
30 description = "Command line tool for RFC1751 (aka S/Key) numbers-as-word-lists";
31 homepage = "https://git.scottworley.com/rfc1751";
32 license = lib.licenses.isc;
33 maintainers = with lib.maintainers; [ chkno ];
34 };
35 }
36 ) { }