summaryrefslogtreecommitdiffstats
path: root/pkgs/development
diff options
context:
space:
mode:
authorFernando J Pando <fernando.pando@stelligent.com>2017-03-02 21:05:54 -0500
committerFernando J Pando <fernando.pando@stelligent.com>2017-03-03 08:46:46 -0500
commitf40b0f5e3741bd01142574db6eb54a748e19149b (patch)
treeef1fbb226003691fccb93952302fd5ab22db5900 /pkgs/development
parent6be140d621c89e37bb5eeea5338d50f4eb3ef20e (diff)
astroid: 1.4.4 -> 1.4.9
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/astroid/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/astroid/default.nix b/pkgs/development/python-modules/astroid/default.nix
new file mode 100644
index 000000000000..76f58e695f28
--- /dev/null
+++ b/pkgs/development/python-modules/astroid/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchurl, buildPythonPackage, python, logilab_common, six,
+ lazy-object-proxy, wrapt }:
+
+ buildPythonPackage rec {
+ name = "${pname}-${version}";
+ pname = "astroid";
+ version = "1.4.9";
+
+ src = fetchurl {
+ url = "mirror://pypi/a/${pname}/${name}.tar.gz";
+ sha256 = "1mw5q20b80j55vbpcdfl824sbb1q15dhkfbczjnnv8733j4yg0x4";
+ };
+
+ propagatedBuildInputs = [ logilab_common six lazy-object-proxy wrapt ];
+
+ postPatch = ''
+ cd astroid/tests
+ for i in $(ls unittest*); do mv -v $i test_$i; done
+ cd ../..
+ rm -vf astroid/tests/test_unittest_inference.py
+ '';
+
+ checkPhase = ''
+ ${python.interpreter} -m unittest discover
+ '';
+
+ meta = with stdenv.lib; {
+ description = "A abstract syntax tree for Python with inference support";
+ homepage = http://bitbucket.org/logilab/astroid;
+ license = licenses.lgpl2;
+ platform = platforms.all;
+ maintainers = with maintainers; [ nand0p ];
+ };
+ }