diff --git a/pkgs/development/python-modules/licomp-dwheeler/default.nix b/pkgs/development/python-modules/licomp-dwheeler/default.nix new file mode 100644 index 000000000000..39fb76e1905d --- /dev/null +++ b/pkgs/development/python-modules/licomp-dwheeler/default.nix @@ -0,0 +1,58 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + setuptools, + + # dependencies + licomp, + + # tests + pytestCheckHook, + jsonschema, +}: + +buildPythonPackage (finalAttrs: { + pname = "licomp-dwheeler"; + version = "0.5.1"; + pyproject = true; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "hesa"; + repo = "licomp-dwheeler"; + tag = finalAttrs.version; + hash = "sha256-p6BSedKqauJCVpkr18UN6oNLwI2NknfJx8FHBIbi3I4="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + licomp + ]; + + nativeCheckInputs = [ + pytestCheckHook + jsonschema + ]; + + pythonImportsCheck = [ + "licomp_dwheeler" + ]; + + meta = { + description = "Implementation of Licomp using David Wheeler's graph"; + homepage = "https://github.com/hesa/licomp-dwheeler"; + changelog = "https://github.com/hesa/licomp-dwheeler/releases/tag/${finalAttrs.src.tag}"; + license = with lib.licenses; [ + cc-by-sa-30 + gpl3Plus + ]; + maintainers = with lib.maintainers; [ eljamm ]; + teams = with lib.teams; [ ngi ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b009b907e064..6ff3f38c1d16 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9063,6 +9063,8 @@ self: super: with self; { licomp-doubleopen = callPackage ../development/python-modules/licomp-doubleopen { }; + licomp-dwheeler = callPackage ../development/python-modules/licomp-dwheeler { }; + lida = callPackage ../development/python-modules/lida { }; lief = (toPythonModule (pkgs.lief.override { python3 = python; })).py;