1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
53 lines
1.0 KiB
Nix
53 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
configparser,
|
|
fetchFromGitHub,
|
|
pip,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
python3-openid,
|
|
semantic-version,
|
|
setuptools,
|
|
toml,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "liccheck";
|
|
version = "0.9.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dhatim";
|
|
repo = "python-license-check";
|
|
tag = version;
|
|
hash = "sha256-ohq3ZsbZcyqhwmvaVF/+mo7lNde5gjbz8pwhzHi3SPY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
configparser
|
|
semantic-version
|
|
toml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pip
|
|
pytest-mock
|
|
pytestCheckHook
|
|
python3-openid
|
|
];
|
|
|
|
pythonImportsCheck = [ "liccheck" ];
|
|
|
|
meta = {
|
|
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/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "liccheck";
|
|
};
|
|
}
|