mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-09 04:46:51 +01:00
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
50 lines
1 KiB
Nix
50 lines
1 KiB
Nix
{
|
|
lib,
|
|
argcomplete,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
gql,
|
|
pyyaml,
|
|
requests-toolbelt,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-gitlab";
|
|
version = "7.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "python_gitlab";
|
|
inherit version;
|
|
hash = "sha256-5Nk0Qw9k78CeYgi3gsYcwKM4lSd2XgP/vvF/QyPc5EE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
requests
|
|
requests-toolbelt
|
|
];
|
|
|
|
optional-dependencies = {
|
|
autocompletion = [ argcomplete ];
|
|
graphql = [ gql ] ++ gql.optional-dependencies.httpx;
|
|
yaml = [ pyyaml ];
|
|
};
|
|
|
|
# Tests rely on a gitlab instance on a local docker setup
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "gitlab" ];
|
|
|
|
meta = {
|
|
description = "Interact with GitLab API";
|
|
homepage = "https://github.com/python-gitlab/python-gitlab";
|
|
changelog = "https://github.com/python-gitlab/python-gitlab/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.lgpl3Only;
|
|
maintainers = with lib.maintainers; [ nyanloutre ];
|
|
mainProgram = "gitlab";
|
|
};
|
|
}
|