Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies jsonschema, license-expression, osadl-matrix, pyyaml, spdx-license-list,
# tests pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "foss-flame"; version = "0.21.8"; __structuredAttrs = true; pyproject = true;
src = fetchFromGitHub { owner = "hesa"; repo = "foss-licenses"; tag = finalAttrs.version; hash = "sha256-vtiwY5l9zlNKQdoO3NSOG+9U1chqD5tvzBE20xSnGPA="; postFetch = '' # We have `CONSIDERATIONS.md` and `considerations.md` with almost the # same contents, but because Darwin is case-insensitive, having both # files results in a conflict, and therefore different source hashes than # other platforms. find $out -iname "considerations.md" -delete ''; };
sourceRoot = "${finalAttrs.src.name}/python";
build-system = [ setuptools ];
dependencies = [ jsonschema license-expression osadl-matrix pyyaml spdx-license-list ];
nativeCheckInputs = [ pytestCheckHook ];
# Upstream setup.cfg has addopts, requiring pytest-{cov,forked,random-order}. # Clearing it is simpler than replicating those plugins, especially since # they only affect how tests run. pytestFlags = [ "--override-ini=addopts=" ];
preCheck = '' ln -s ../tests . '';
pythonImportsCheck = [ "flame" ];
meta = { description = "License meta data: data and python module/cli"; homepage = "https://github.com/hesa/foss-licenses"; changelog = "https://github.com/hesa/foss-licenses/releases/tag/${finalAttrs.src.tag}"; mainProgram = "flame"; license = with lib.licenses; [ bsd2 cc-by-40 gpl3Plus ]; maintainers = with lib.maintainers; [ eljamm ]; teams = with lib.teams; [ ngi ]; };})