Merge pull request #254276 from fabaff/liccheck
python311Packages.liccheck: init at 0.9.1
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, configparser
|
||||
, fetchFromGitHub
|
||||
, pip
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, python3-openid
|
||||
, pythonOlder
|
||||
, semantic-version
|
||||
, toml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "liccheck";
|
||||
version = "0.9.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dhatim";
|
||||
repo = "python-license-check";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-ZgwHcZI0vsNYJWPkUnoBogVPPIuifAX9hu4fa1fHSz4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
configparser
|
||||
semantic-version
|
||||
toml
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pip
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
python3-openid
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"liccheck"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Check python packages from requirement.txt and report issues";
|
||||
homepage = "https://github.com/dhatim/python-license-check";
|
||||
changelog = "https://github.com/dhatim/python-license-check/releases/tag/${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -6126,6 +6126,8 @@ self: super: with self; {
|
||||
inherit (self) python libxml2;
|
||||
})).py;
|
||||
|
||||
liccheck = callPackage ../development/python-modules/liccheck { };
|
||||
|
||||
license-expression = callPackage ../development/python-modules/license-expression { };
|
||||
|
||||
lief = (toPythonModule (pkgs.lief.override {
|
||||
|
||||
Reference in New Issue
Block a user