{python3Packages.,}foss-flame: init at 0.21.8
Assisted-By: nix-init
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{ python3Packages }:
|
||||
|
||||
python3Packages.toPythonApplication python3Packages.foss-flame
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
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 ];
|
||||
};
|
||||
})
|
||||
@@ -5964,6 +5964,8 @@ self: super: with self; {
|
||||
|
||||
fortune = callPackage ../development/python-modules/fortune { };
|
||||
|
||||
foss-flame = callPackage ../development/python-modules/foss-flame { };
|
||||
|
||||
foundationdb = callPackage ../development/python-modules/foundationdb {
|
||||
inherit (pkgs) foundationdb;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user