Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ lib, buildPythonPackage, fetchFromCodeberg,
# build-system setuptools,
# dependencies foss-flame, licomp, licomp-doubleopen, licomp-dwheeler, licomp-gnuguide, licomp-hermione, licomp-osadl, licomp-oslc-handbook, licomp-proprietary, licomp-reclicense, pyyaml,
# tests pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "licomp-toolkit"; version = "0.5.20"; pyproject = true; __structuredAttrs = true;
src = fetchFromCodeberg { owner = "software-compliance-org"; repo = "licomp-toolkit"; tag = finalAttrs.version; hash = "sha256-E6ehhQj1EcpW+8Cf2b+dtYSCH7fQ/AgS8uWIN4ipeCQ="; };
build-system = [ setuptools ];
dependencies = [ foss-flame licomp licomp-doubleopen licomp-dwheeler licomp-gnuguide licomp-hermione licomp-osadl licomp-oslc-handbook licomp-proprietary licomp-reclicense pyyaml ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "licomp_toolkit" ];
meta = { description = "Python module and program to check compatibility between two licenses with context"; homepage = "https://codeberg.org/software-compliance-org/licomp-toolkit"; mainProgram = "licomp-toolkit"; license = with lib.licenses; [ gpl3Plus ]; maintainers = with lib.maintainers; [ eljamm ]; teams = with lib.teams; [ ngi ]; # TODO: remove when this is resolved: # https://github.com/hesa/licomp-oslc-handbook/issues/4 badPlatforms = lib.platforms.darwin; };})