Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 50 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, setuptools, typing-extensions, pip, pylint, pytestCheckHook}:
buildPythonPackage rec { pname = "astroid"; version = "3.0.1"; # Check whether the version is compatible with pylint pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "PyCQA"; repo = "astroid"; rev = "refs/tags/v${version}"; hash = "sha256-z6FmB3I3VmiIx0MSsrkvHmDVv2h3CaaeXlDG3DewGXw="; };
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ typing-extensions ];
nativeCheckInputs = [ pip pytestCheckHook ];
passthru.tests = { inherit pylint; };
meta = with lib; { changelog = "https://github.com/PyCQA/astroid/blob/${src.rev}/ChangeLog"; description = "An abstract syntax tree for Python with inference support"; homepage = "https://github.com/PyCQA/astroid"; license = licenses.lgpl21Plus; maintainers = with maintainers; [ GaetanLepage ]; };}