571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "cyclonedx-python";
|
|
version = "4.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CycloneDX";
|
|
repo = "cyclonedx-python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-EcCxw3SppuGUgN7AIU9NhpRw7dLDhTHHT5emGOgkDFU=";
|
|
};
|
|
|
|
build-system = with python3Packages; [ poetry-core ];
|
|
|
|
dependencies = with python3Packages; [
|
|
chardet
|
|
cyclonedx-python-lib
|
|
packageurl-python
|
|
pip-requirements-parser
|
|
packaging
|
|
tomli
|
|
] ++ cyclonedx-python-lib.optional-dependencies.validation;
|
|
|
|
pythonImportsCheck = [ "cyclonedx" ];
|
|
|
|
meta = {
|
|
description = "Creates CycloneDX Software Bill of Materials (SBOM) from Python projects";
|
|
homepage = "https://github.com/CycloneDX/cyclonedx-python";
|
|
changelog = "https://github.com/CycloneDX/cyclonedx-python/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = lib.teams.cyberus.members;
|
|
mainProgram = "cyclonedx-py";
|
|
};
|
|
}
|