X-Git-Url: http://git.scottworley.com/rfc1751/blobdiff_plain/812ca2069a573d8abf45a3835f41a8838e5052ea..ce9c78d7a06ed44a56997a5730f765a0c8aadd7a:/default.nix?ds=inline diff --git a/default.nix b/default.nix index f1052a2..87d0ca3 100644 --- a/default.nix +++ b/default.nix @@ -1,18 +1,36 @@ -{ pkgs ? import { }, lint ? false }: -pkgs.python3Packages.callPackage -({ lib, buildPythonPackage, mypy, autopep8, pylint, }: +{ + pkgs ? import { }, + lint ? false, +}: +pkgs.python3Packages.callPackage ( + { + lib, + buildPythonPackage, + mypy, + autopep8, + pylint, + setuptools, + }: buildPythonPackage rec { pname = "rfc1751"; version = "1.0.0"; src = lib.cleanSource ./.; - nativeCheckInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ]; + pyproject = true; + build-system = [ setuptools ]; + nativeCheckInputs = [ + mypy + ] + ++ lib.optionals lint [ + autopep8 + pylint + ]; doCheck = true; checkPhase = "./test.sh"; meta = { - description = - "Command line tool for RFC1751 (aka S/Key) numbers-as-word-lists"; + description = "Command line tool for RFC1751 (aka S/Key) numbers-as-word-lists"; homepage = "https://git.scottworley.com/rfc1751"; license = lib.licenses.isc; maintainers = with lib.maintainers; [ chkno ]; }; - }) { } + } +) { }