Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / license-expression / default.nix
bloba17f4e829cae8beb6fa44b432e28a4c7845e7cfb
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.3.0";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "nexB";
19     repo = "license-expression";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-nHqfnetVyz4W2Q6onH0mU/4x9e/vD4rbl9DF4TYqWzs=";
22   };
24   dontConfigure = true;
26   nativeBuildInputs = [
27     setuptools-scm
28   ];
30   propagatedBuildInputs = [
31     boolean-py
32   ];
34   nativeCheckInputs = [
35     pytestCheckHook
36   ];
38   pythonImportsCheck = [
39     "license_expression"
40   ];
42   meta = with lib; {
43     description = "Utility library to parse, normalize and compare License expressions";
44     homepage = "https://github.com/nexB/license-expression";
45     changelog = "https://github.com/nexB/license-expression/blob/v${version}/CHANGELOG.rst";
46     license = licenses.asl20;
47     maintainers = with maintainers; [ fab ];
48   };