From a5180b1017ae3f96d6c6d73fc85e0604934163aa Mon Sep 17 00:00:00 2001 From: Kirill Elagin Date: Sat, 10 Aug 2019 13:18:25 +0300 Subject: [PATCH] pythonPackages.license-expression: init at 0.999 --- .../license-expression/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/python-modules/license-expression/default.nix diff --git a/pkgs/development/python-modules/license-expression/default.nix b/pkgs/development/python-modules/license-expression/default.nix new file mode 100644 index 000000000000..6d52e5f5c1f5 --- /dev/null +++ b/pkgs/development/python-modules/license-expression/default.nix @@ -0,0 +1,24 @@ +{ lib, buildPythonPackage, fetchFromGitHub +, boolean-py +}: + +buildPythonPackage rec { + pname = "license-expression"; + version = "0.999"; + + src = fetchFromGitHub { + owner = "nexB"; + repo = "license-expression"; + rev = "v${version}"; + sha256 = "0q8sha38w7ajg7ar0rmbqrwv0n58l8yzyl96cqwcbvp578fn3ir0"; + }; + + 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; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 02c2ff3ab327..3813a7a939e3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2450,6 +2450,8 @@ in { libthumbor = callPackage ../development/python-modules/libthumbor { }; + license-expression = callPackage ../development/python-modules/license-expression { }; + lightblue = callPackage ../development/python-modules/lightblue { }; lightgbm = callPackage ../development/python-modules/lightgbm { };