diff --git a/pkgs/development/python-modules/licomp-hermione/default.nix b/pkgs/development/python-modules/licomp-hermione/default.nix new file mode 100644 index 000000000000..9bf2a5f827cf --- /dev/null +++ b/pkgs/development/python-modules/licomp-hermione/default.nix @@ -0,0 +1,53 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + licomp, + pytestCheckHook, + jsonschema, +}: + +buildPythonPackage (finalAttrs: { + pname = "licomp-hermione"; + version = "0.5.2"; + pyproject = true; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "hesa"; + repo = "licomp-hermione"; + tag = finalAttrs.version; + hash = "sha256-TIfi7E+BBChOz/EXRJxjFRYavVRPfnSkBHTaiY87k/Y="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + licomp + ]; + + nativeCheckInputs = [ + pytestCheckHook + jsonschema + ]; + + pythonImportsCheck = [ + "licomp_hermione" + ]; + + meta = { + description = "Implementation of Licomp using the Hermine license resource"; + homepage = "https://github.com/hesa/licomp-hermione"; + changelog = "https://github.com/hesa/licomp-hermione/releases/tag/${finalAttrs.src.tag}"; + license = with lib.licenses; [ + bsd0 + gpl3Plus + odbl + ]; + 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 5f77b3f8349f..86b8884d53be 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9067,6 +9067,8 @@ self: super: with self; { licomp-gnuguide = callPackage ../development/python-modules/licomp-gnuguide { }; + licomp-hermione = callPackage ../development/python-modules/licomp-hermione { }; + lida = callPackage ../development/python-modules/lida { }; lief = (toPythonModule (pkgs.lief.override { python3 = python; })).py;