Diff: https://github.com/nexB/license-expression/compare/refs/tags/v30.1.0...v30.1.1 Changelog: https://github.com/nexB/license-expression/blob/v30.1.1/CHANGELOG.rst
52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
{ lib
|
|
, boolean-py
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "license-expression";
|
|
version = "30.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nexB";
|
|
repo = "license-expression";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-5pRfFRQLxWmhEKoJZiC7gZbmW8BbqBNBWbdwFL0MtpM=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
dontConfigure = true;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
boolean-py
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"license_expression"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Utility library to parse, normalize and compare License expressions";
|
|
homepage = "https://github.com/nexB/license-expression";
|
|
changelog = "https://github.com/nexB/license-expression/blob/v${version}/CHANGELOG.rst";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|