My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/python-modules/license-expression/default.nix

46 lines
884 B

{ lib
, boolean-py
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "license-expression";
version = "21.6.14";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "nexB";
repo = "license-expression";
rev = "v${version}";
sha256 = "sha256-hwfYKKalo8WYFwPCsRRXNz+/F8/42PXA8jxbIQjJH/g=";
};
dontConfigure = true;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
boolean-py
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "license_expression" ];
meta = with lib; {
description = "Utility library to parse, normalize and compare License expressions for Python";
homepage = "https://github.com/nexB/license-expression";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}