2019-08-10 11:18:25 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
|
|
|
, boolean-py
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "license-expression";
|
2019-11-02 21:28:04 +00:00
|
|
|
version = "1.0";
|
2019-08-10 11:18:25 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nexB";
|
|
|
|
repo = "license-expression";
|
|
|
|
rev = "v${version}";
|
2019-11-02 21:28:04 +00:00
|
|
|
sha256 = "15dk3j5sr8iypzqqa8wa12b2a84f6ssbfvam1c1vzz00y2y5v3ic";
|
2019-08-10 11:18:25 +01:00
|
|
|
};
|
2019-09-23 12:50:31 +01:00
|
|
|
postPatch = "patchShebangs ./configure";
|
2019-08-10 11:18:25 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ boolean-py ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/nexB/license-expression";
|
|
|
|
description = "Utility library to parse, normalize and compare License expressions for Python using a boolean logic engine";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|