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

32 lines
859 B
Nix
Raw Normal View History

2018-07-24 01:08:05 +02:00
{ lib, fetchPypi, buildPythonPackage, pythonOlder, isPyPy
, lazy-object-proxy, six, wrapt, typing, typed-ast
, pytestrunner, pytest
2017-05-27 12:23:41 +02:00
}:
2017-03-03 03:05:54 +01:00
2017-05-27 12:23:41 +02:00
buildPythonPackage rec {
pname = "astroid";
2019-11-19 15:35:32 +01:00
version = "2.3.3";
2017-03-03 03:05:54 +01:00
2018-07-24 01:08:05 +02:00
disabled = pythonOlder "3.4";
2017-06-06 11:32:19 +02:00
src = fetchPypi {
inherit pname version;
2019-11-19 15:35:32 +01:00
sha256 = "71ea07f44df9568a75d0f354c49143a4575d90645e9fead6dfb52c26a85ed13a";
2017-05-27 12:23:41 +02:00
};
2017-03-03 03:05:54 +01:00
2018-07-24 01:08:05 +02:00
# From astroid/__pkginfo__.py
propagatedBuildInputs = [ lazy-object-proxy six wrapt ]
++ lib.optional (pythonOlder "3.5") typing
2019-05-17 23:25:19 +02:00
++ lib.optional (!isPyPy) typed-ast;
2017-03-03 03:05:54 +01:00
2018-07-24 01:08:05 +02:00
checkInputs = [ pytestrunner pytest ];
2017-03-03 03:05:54 +01:00
2017-05-27 12:23:41 +02:00
meta = with lib; {
2018-08-31 00:28:38 +02:00
description = "An abstract syntax tree for Python with inference support";
homepage = "https://github.com/PyCQA/astroid";
2017-05-27 12:23:41 +02:00
license = licenses.lgpl2;
platforms = platforms.all;
maintainers = with maintainers; [ nand0p ];
};
}