nixpkgs/pkgs/development/python-modules/astroid/default.nix

41 lines
811 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, isPyPy
, lazy-object-proxy
, wrapt
, typed-ast
, pytestCheckHook
2017-05-27 03:23:41 -07:00
}:
2017-03-02 18:05:54 -08:00
2017-05-27 03:23:41 -07:00
buildPythonPackage rec {
pname = "astroid";
version = "2.5";
2017-03-02 18:05:54 -08:00
disabled = pythonOlder "3.6";
2018-07-23 16:08:05 -07:00
2017-06-06 02:32:19 -07:00
src = fetchPypi {
inherit pname version;
sha256 = "03dzhjrsc5d2whyjngfrwvxn42058k0cjjr85x2wqzai8psr475k";
2017-05-27 03:23:41 -07:00
};
2017-03-02 18:05:54 -08:00
2018-07-23 16:08:05 -07:00
# From astroid/__pkginfo__.py
propagatedBuildInputs = [
lazy-object-proxy
wrapt
] ++ lib.optional (!isPyPy && pythonOlder "3.8") typed-ast;
2017-03-02 18:05:54 -08:00
checkInputs = [
pytestCheckHook
];
2017-03-02 18:05:54 -08:00
2017-05-27 03:23:41 -07:00
meta = with lib; {
2018-08-30 15:28:38 -07:00
description = "An abstract syntax tree for Python with inference support";
homepage = "https://github.com/PyCQA/astroid";
2017-05-27 03:23:41 -07:00
license = licenses.lgpl2;
platforms = platforms.all;
maintainers = with maintainers; [ nand0p ];
};
}