Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / license-expression / default.nix
blobbd95899398f8e4f579b0f34b870ca8d2949a764e
1 { lib
2 , boolean-py
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools-scm
8 }:
10 buildPythonPackage rec {
11   pname = "license-expression";
12   version = "30.1.1";
13   format = "setuptools";
15   disabled = pythonOlder "3.6";
17   src = fetchFromGitHub {
18     owner = "nexB";
19     repo = "license-expression";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-5pRfFRQLxWmhEKoJZiC7gZbmW8BbqBNBWbdwFL0MtpM=";
22   };
24   SETUPTOOLS_SCM_PRETEND_VERSION = version;
26   dontConfigure = true;
28   nativeBuildInputs = [
29     setuptools-scm
30   ];
32   propagatedBuildInputs = [
33     boolean-py
34   ];
36   nativeCheckInputs = [
37     pytestCheckHook
38   ];
40   pythonImportsCheck = [
41     "license_expression"
42   ];
44   meta = with lib; {
45     description = "Utility library to parse, normalize and compare License expressions";
46     homepage = "https://github.com/nexB/license-expression";
47     changelog = "https://github.com/nexB/license-expression/blob/v${version}/CHANGELOG.rst";
48     license = licenses.asl20;
49     maintainers = with maintainers; [ fab ];
50   };