mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 08:04:15 +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
54 lines
1,023 B
Nix
54 lines
1,023 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
deprecated,
|
|
fetchFromGitHub,
|
|
pynacl,
|
|
typing-extensions,
|
|
pyjwt,
|
|
requests,
|
|
setuptools,
|
|
setuptools-scm,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pygithub";
|
|
version = "2.8.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyGithub";
|
|
repo = "PyGithub";
|
|
tag = "v${version}";
|
|
hash = "sha256-36taxa95WrpQw0UUlmnWX4XFslAAuuoousxNh5O5uDA=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
deprecated
|
|
pyjwt
|
|
pynacl
|
|
requests
|
|
typing-extensions
|
|
urllib3
|
|
]
|
|
++ pyjwt.optional-dependencies.crypto;
|
|
|
|
# Test suite makes REST calls against github.com
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "github" ];
|
|
|
|
meta = {
|
|
description = "Python library to access the GitHub API v3";
|
|
homepage = "https://github.com/PyGithub/PyGithub";
|
|
changelog = "https://github.com/PyGithub/PyGithub/raw/${src.tag}/doc/changes.rst";
|
|
license = lib.licenses.lgpl3Plus;
|
|
maintainers = [ ];
|
|
};
|
|
}
|