Merge staging into staging-next
Merging staging into staging-next even though we haven't merged staging-next into master yet. The motivation for this merge is that it's been a while since we merged into master causing the 3 branches to diverge too much.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
let
|
||||
excludedTests = []
|
||||
++ [ "reimport_from_subinterpreter" ]
|
||||
# cython's testsuite is not working very well with libc++
|
||||
# We are however optimistic about things outside of testsuite still working
|
||||
++ stdenv.lib.optionals (stdenv.cc.isClang or false) [ "cpdef_extern_func" "libcpp_algo" ]
|
||||
@@ -25,11 +26,11 @@ let
|
||||
|
||||
in buildPythonPackage rec {
|
||||
pname = "Cython";
|
||||
version = "0.28.5";
|
||||
version = "0.29";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b64575241f64f6ec005a4d4137339fb0ba5e156e826db2fdb5f458060d9979e0";
|
||||
sha256 = "15zama7fgp7yyi3z39xp3z2lvwcgch8fn3ycscw2cs37vqg6v4cl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
35
pkgs/development/python-modules/aioeventlet/default.nix
Normal file
35
pkgs/development/python-modules/aioeventlet/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, eventlet
|
||||
, trollius
|
||||
, asyncio
|
||||
, mock
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioeventlet";
|
||||
version = "0.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "19krvycaiximchhv1hcfhz81249m3w3jrbp2h4apn1yf4yrc4y7y";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ eventlet trollius asyncio ];
|
||||
buildInputs = [ mock ];
|
||||
|
||||
# 2 tests error out
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
${python.interpreter} runtests.py
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "aioeventlet implements the asyncio API (PEP 3156) on top of eventlet. It makes";
|
||||
homepage = http://aioeventlet.readthedocs.org/;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
||||
33
pkgs/development/python-modules/argh/default.nix
Normal file
33
pkgs/development/python-modules/argh/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, py
|
||||
, mock
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "argh";
|
||||
version = "0.26.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1nqham81ihffc9xmw85dz3rg3v90rw7h0dp3dy0bh3qkp4n499q6";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest py mock pkgs.glibcLocales ];
|
||||
|
||||
checkPhase = ''
|
||||
export LANG="en_US.UTF-8"
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://github.com/neithere/argh/;
|
||||
description = "An unobtrusive argparse wrapper with natural syntax";
|
||||
license = licenses.lgpl2;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -4,11 +4,11 @@
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "autobahn";
|
||||
version = "18.8.2";
|
||||
version = "18.10.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "448df2e241011ea2948799918930042d81e63d26b01912c472f5a9a37f42f319";
|
||||
sha256 = "b5767bebd94ba13fc286604f889f208e7babc77d72d9f372d331bc14c89c5a40";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six txaio twisted zope_interface cffi ] ++
|
||||
|
||||
43
pkgs/development/python-modules/basemap/default.nix
Normal file
43
pkgs/development/python-modules/basemap/default.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, numpy
|
||||
, matplotlib
|
||||
, pillow
|
||||
, setuptools
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "basemap";
|
||||
version = "1.0.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/matplotlib/matplotlib-toolkits/basemap-1.0.7/basemap-1.0.7.tar.gz";
|
||||
sha256 = "0ca522zirj5sj10vg3fshlmgi615zy5gw2assapcj91vsvhc4zp0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy matplotlib pillow ];
|
||||
buildInputs = [ setuptools pkgs.geos pkgs.proj ];
|
||||
|
||||
# Standard configurePhase from `buildPythonPackage` seems to break the setup.py script
|
||||
configurePhase = ''
|
||||
export GEOS_DIR=${pkgs.geos}
|
||||
'';
|
||||
|
||||
# The 'check' target is not supported by the `setup.py` script.
|
||||
# TODO : do the post install checks (`cd examples && ${python.interpreter} run_all.py`)
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://matplotlib.org/basemap/";
|
||||
description = "Plot data on map projections with matplotlib";
|
||||
longDescription = ''
|
||||
An add-on toolkit for matplotlib that lets you plot data on map projections with
|
||||
coastlines, lakes, rivers and political boundaries. See
|
||||
http://matplotlib.github.com/basemap/users/examples.html for examples of what it can do.
|
||||
'';
|
||||
license = with licenses; [ mit gpl2 ];
|
||||
};
|
||||
|
||||
}
|
||||
25
pkgs/development/python-modules/blessings/default.nix
Normal file
25
pkgs/development/python-modules/blessings/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "blessings";
|
||||
version = "1.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "01rhgn2c3xjf9h1lxij9m05iwf2ba6d0vd7nic26c2gic4q73igd";
|
||||
};
|
||||
|
||||
# 4 failing tests, 2to3
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/erikrose/blessings;
|
||||
description = "A thin, practical wrapper around terminal coloring, styling, and positioning";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
|
||||
}
|
||||
23
pkgs/development/python-modules/blist/default.nix
Normal file
23
pkgs/development/python-modules/blist/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "blist";
|
||||
version = "1.3.6";
|
||||
disabled = isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1hqz9pqbwx0czvq9bjdqjqh5bwfksva1is0anfazig81n18c84is";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://stutzbachenterprises.com/blist/;
|
||||
description = "A list-like type with better asymptotic performance and similar performance on small lists";
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -3,9 +3,9 @@
|
||||
let
|
||||
wheel_source = fetchPypi {
|
||||
pname = "wheel";
|
||||
version = "0.32.1";
|
||||
version = "0.32.2";
|
||||
format = "wheel";
|
||||
sha256 = "15hizylh761jcaz8zfdc3wg30jf33izaakyv1p82ppx2y5rgg8cz";
|
||||
sha256 = "1216licil12jjixfqvkb84xkync5zz0fdc2kgzhl362z3xqjsgn9";
|
||||
};
|
||||
setuptools_source = fetchPypi {
|
||||
pname = "setuptools";
|
||||
|
||||
31
pkgs/development/python-modules/cliapp/default.nix
Normal file
31
pkgs/development/python-modules/cliapp/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchgit
|
||||
, sphinx
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cliapp";
|
||||
version = "1.20150305";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchgit {
|
||||
url = "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/cliapp";
|
||||
rev = "569df8a5959cd8ef46f78c9497461240a5aa1123";
|
||||
sha256 = "882c5daf933e4cf089842995efc721e54361d98f64e0a075e7373b734cd899f3";
|
||||
};
|
||||
|
||||
buildInputs = [ sphinx ];
|
||||
|
||||
# error: invalid command 'test'
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://liw.fi/cliapp/;
|
||||
description = "Python framework for Unix command line programs";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ rickynils ];
|
||||
};
|
||||
|
||||
}
|
||||
39
pkgs/development/python-modules/clint/default.nix
Normal file
39
pkgs/development/python-modules/clint/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, mock
|
||||
, blessings
|
||||
, nose
|
||||
, nose_progressive
|
||||
, pillow
|
||||
, args
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "clint";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5";
|
||||
};
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} test_clint.py
|
||||
'';
|
||||
|
||||
buildInputs = [ mock nose nose_progressive pkgs.glibcLocales ];
|
||||
propagatedBuildInputs = [ pillow blessings args ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/kennethreitz/clint;
|
||||
description = "Python Command Line Interface Tools";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
|
||||
}
|
||||
26
pkgs/development/python-modules/clize/default.nix
Normal file
26
pkgs/development/python-modules/clize/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, dateutil
|
||||
, sigtools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "clize";
|
||||
version = "3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1xkr3h404d7pgj5gdpg6bddv3v3yq2hgx8qlwkgw5abg218k53hm";
|
||||
};
|
||||
|
||||
buildInputs = [ dateutil ];
|
||||
propagatedBuildInputs = [ sigtools ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Command-line argument parsing for Python";
|
||||
homepage = "https://github.com/epsy/clize";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
32
pkgs/development/python-modules/cmdtest/default.nix
Normal file
32
pkgs/development/python-modules/cmdtest/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, cliapp
|
||||
, ttystatus
|
||||
, markdown
|
||||
, isPy3k
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "cmdtest-${version}";
|
||||
version = "0.18";
|
||||
disabled = isPy3k || isPyPy;
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://code.liw.fi/debian/pool/main/c/cmdtest/cmdtest_${version}.orig.tar.xz";
|
||||
sha256 = "068f24k8ad520hcf8g3gj7wvq1wspyd46ay0k9xa360jlb4dv2mn";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cliapp ttystatus markdown ];
|
||||
|
||||
# TODO: cmdtest tests must be run before the buildPhase
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://liw.fi/cmdtest/;
|
||||
description = "Black box tests Unix command line tools";
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
|
||||
}
|
||||
21
pkgs/development/python-modules/daemonize/default.nix
Normal file
21
pkgs/development/python-modules/daemonize/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "daemonize";
|
||||
version = "2.4.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0y139sq657bpzfv6k0aqm4071z4s40i6ybpni9qvngvdcz6r86n2";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Library to enable your code run as a daemon process on Unix-like systems";
|
||||
homepage = https://github.com/thesharp/daemonize;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
25
pkgs/development/python-modules/datadiff/default.nix
Normal file
25
pkgs/development/python-modules/datadiff/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "datadiff";
|
||||
version = "1.1.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "f1402701063998f6a70609789aae8dc05703f3ad0a34882f6199653654c55543";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "DataDiff";
|
||||
homepage = https://sourceforge.net/projects/datadiff/;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
||||
28
pkgs/development/python-modules/dot2tex/default.nix
Normal file
28
pkgs/development/python-modules/dot2tex/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, pyparsing
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dot2tex";
|
||||
version = "2.9.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "7d3e54add7dccdaeb6cc9e61ceaf7b587914cf8ebd6821cfea008acdc1e50d4a";
|
||||
};
|
||||
|
||||
# Tests fail with 3.x. Furthermore, package is no longer maintained.
|
||||
disabled = isPy3k;
|
||||
|
||||
propagatedBuildInputs = [ pyparsing ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Convert graphs generated by Graphviz to LaTeX friendly formats";
|
||||
homepage = "https://github.com/kjellmf/dot2tex";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
28
pkgs/development/python-modules/eggdeps/default.nix
Normal file
28
pkgs/development/python-modules/eggdeps/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, zope_interface
|
||||
, zope_testing
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "eggdeps";
|
||||
version = "0.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a99de5e4652865224daab09b2e2574a4f7c1d0d9a267048f9836aa914a2caf3a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ zope_interface zope_testing ];
|
||||
|
||||
# tests fail, see http://hydra.nixos.org/build/4316603/log/raw
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A tool which computes a dependency graph between active Python eggs";
|
||||
homepage = http://thomas-lotze.de/en/software/eggdeps/;
|
||||
license = licenses.zpl20;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -4,6 +4,7 @@
|
||||
, configparser
|
||||
, pytest
|
||||
, isPy3k
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -19,8 +20,15 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = lib.optional (!isPy3k) configparser;
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests
|
||||
checkPhase = let
|
||||
# On python2 with pytest 3.9.2 (not with pytest 3.7.4) the test_bad
|
||||
# test fails. It tests that a warning (exectly one) is thrown on a "bad"
|
||||
# path. The pytest upgrade added some warning, resulting in two warnings
|
||||
# being thrown.
|
||||
# upstream: https://github.com/takluyver/entrypoints/issues/23
|
||||
pyTestArgs = if isPy27 then "-k 'not test_bad'" else "";
|
||||
in ''
|
||||
py.test ${pyTestArgs} tests
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
27
pkgs/development/python-modules/evernote/default.nix
Normal file
27
pkgs/development/python-modules/evernote/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, oauth2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "evernote";
|
||||
version = "1.25.0";
|
||||
disabled = ! isPy27; #some dependencies do not work with py3
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1lwlg6fpi3530245jzham1400a5b855bm4sbdyck229h9kg1v02d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ oauth2 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Evernote SDK for Python";
|
||||
homepage = http://dev.evernote.com;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ hbunke ];
|
||||
};
|
||||
|
||||
}
|
||||
35
pkgs/development/python-modules/fasteners/default.nix
Normal file
35
pkgs/development/python-modules/fasteners/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
, monotonic
|
||||
, testtools
|
||||
, python
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fasteners";
|
||||
version = "0.14.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "063y20kx01ihbz2mziapmjxi2cd0dq48jzg587xdsdp07xvpcz22";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six monotonic testtools ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
|
||||
# Tests are written for Python 3.x only (concurrent.futures)
|
||||
doCheck = isPy3k;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Fasteners";
|
||||
homepage = https://github.com/harlowja/fasteners;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
||||
29
pkgs/development/python-modules/flaskbabel/default.nix
Normal file
29
pkgs/development/python-modules/flaskbabel/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, flask
|
||||
, jinja2
|
||||
, speaklater
|
||||
, Babel
|
||||
, pytz
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-Babel";
|
||||
version = "0.11.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "16b80cipdba9xj3jlaiaq6wgrgpjb70w3j01jjy9hbp4k71kd6yj";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ flask jinja2 speaklater Babel pytz ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Adds i18n/l10n support to Flask applications";
|
||||
homepage = https://github.com/mitsuhiko/flask-babel;
|
||||
license = licenses.bsd0;
|
||||
maintainers = with maintainers; [ matejc ];
|
||||
};
|
||||
|
||||
}
|
||||
28
pkgs/development/python-modules/freezegun/default.nix
Normal file
28
pkgs/development/python-modules/freezegun/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, dateutil
|
||||
, six
|
||||
, mock
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "freezegun";
|
||||
version = "0.3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1sf38d3ibv1jhhvr52x7dhrsiyqk1hm165dfv8w8wh0fhmgxg151";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ dateutil six ];
|
||||
buildInputs = [ mock nose ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "FreezeGun: Let your Python tests travel through time";
|
||||
homepage = "https://github.com/spulec/freezegun";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
||||
24
pkgs/development/python-modules/funcy/default.nix
Normal file
24
pkgs/development/python-modules/funcy/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "funcy";
|
||||
version = "1.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "511495db0c5660af18d3151b008c6ce698ae7fbf60887278e79675e35eed1f01";
|
||||
};
|
||||
|
||||
# No tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Collection of fancy functional tools focused on practicality";
|
||||
homepage = "http://funcy.readthedocs.org/";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
||||
24
pkgs/development/python-modules/gdata/default.nix
Normal file
24
pkgs/development/python-modules/gdata/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gdata";
|
||||
version = "2.0.18";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://gdata-python-client.googlecode.com/files/${pname}-${version}.tar.gz";
|
||||
sha256 = "1dpxl5hwyyqd71avpm5vkvw8fhlvf9liizmhrq9jphhrx0nx5rsn";
|
||||
};
|
||||
|
||||
# Fails with "error: invalid command 'test'"
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://code.google.com/p/gdata-python-client/;
|
||||
description = "Python client library for Google data APIs";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
||||
38
pkgs/development/python-modules/geeknote/default.nix
Normal file
38
pkgs/development/python-modules/geeknote/default.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, thrift
|
||||
, beautifulsoup4
|
||||
, markdown2
|
||||
, sqlalchemy
|
||||
, html2text
|
||||
, evernote
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2015-05-11";
|
||||
pname = "geeknote";
|
||||
disabled = ! isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "VitaliyRodnenko";
|
||||
repo = "geeknote";
|
||||
rev = "8489a87d044e164edb321ba9acca8d4631de3dca";
|
||||
sha256 = "0l16v4xnyqnsf84b1pma0jmdyxvmfwcv3sm8slrv3zv7zpmcm3lf";
|
||||
};
|
||||
|
||||
/* build with tests fails with "Can not create application dirictory :
|
||||
/homeless-shelter/.geeknotebuilder". */
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ thrift beautifulsoup4 markdown2 sqlalchemy html2text evernote ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Work with Evernote from command line";
|
||||
homepage = http://www.geeknote.me;
|
||||
license = licenses.gpl1;
|
||||
maintainers = with maintainers; [ hbunke ];
|
||||
};
|
||||
|
||||
}
|
||||
25
pkgs/development/python-modules/geoalchemy2/default.nix
Normal file
25
pkgs/development/python-modules/geoalchemy2/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, sqlalchemy
|
||||
, shapely
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "GeoAlchemy2";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0p2h1kgl5b0jz8wadx485vjh1mmm5s67p71yxh9lhp1441hkfswf";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ sqlalchemy shapely ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://geoalchemy.org/;
|
||||
license = licenses.mit;
|
||||
description = "Toolkit for working with spatial databases";
|
||||
};
|
||||
|
||||
}
|
||||
30
pkgs/development/python-modules/geopy/default.nix
Normal file
30
pkgs/development/python-modules/geopy/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, mock
|
||||
, tox
|
||||
, pylint
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "geopy";
|
||||
version = "1.11.0";
|
||||
disabled = !isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "04j1lxcsfyv03h0n0q7p2ig7a4n13x4x20fzxn8bkazpx6lyal22";
|
||||
};
|
||||
|
||||
doCheck = false; # too much
|
||||
|
||||
buildInputs = [ mock tox pylint ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/geopy/geopy";
|
||||
description = "Python Geocoding Toolbox";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
29
pkgs/development/python-modules/grequests/default.nix
Normal file
29
pkgs/development/python-modules/grequests/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, requests
|
||||
, gevent
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "grequests";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0lafzax5igbh8y4x0krizr573wjsxz7bhvwygiah6qwrzv83kv5c";
|
||||
};
|
||||
|
||||
# No tests in archive
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ requests gevent ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Asynchronous HTTP requests";
|
||||
homepage = https://github.com/kennethreitz/grequests;
|
||||
license = with licenses; [ bsd2 ];
|
||||
maintainers = with maintainers; [ matejc ];
|
||||
};
|
||||
|
||||
}
|
||||
32
pkgs/development/python-modules/hgsvn/default.nix
Normal file
32
pkgs/development/python-modules/hgsvn/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, hglib
|
||||
, isPy3k
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hgsvn";
|
||||
version = "0.3.11";
|
||||
disabled = isPy3k || isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "0yvhwdh8xx8rvaqd3pnnyb99hfa0zjdciadlc933p27hp9rf880p";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
propagatedBuildInputs = [ hglib ];
|
||||
|
||||
doCheck = false; # too many assumptions
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://pypi.python.org/pypi/hgsvn;
|
||||
description = "A set of scripts to work locally on Subversion checkouts using Mercurial";
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
|
||||
}
|
||||
21
pkgs/development/python-modules/html2text/default.nix
Normal file
21
pkgs/development/python-modules/html2text/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "html2text";
|
||||
version = "2016.9.19";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "554ef5fd6c6cf6e3e4f725a62a3e9ec86a0e4d33cd0928136d1c79dbeb7b2d55";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Turn HTML into equivalent Markdown-structured text";
|
||||
homepage = https://github.com/Alir3z4/html2text/;
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||
# pytz fake_factory django numpy pytest
|
||||
# If you need these, you can just add them to your environment.
|
||||
|
||||
version = "3.66.2";
|
||||
version = "3.79.3";
|
||||
pname = "hypothesis";
|
||||
|
||||
# Use github tarballs that includes tests
|
||||
@@ -17,7 +17,7 @@ buildPythonPackage rec {
|
||||
owner = "HypothesisWorks";
|
||||
repo = "hypothesis-python";
|
||||
rev = "hypothesis-python-${version}";
|
||||
sha256 = "17ywbwa76z7f0pgash0003fvm25fsj7hxdrdiprdbv99y3i8bm88";
|
||||
sha256 = "1ay0kwh5315scv7yz9xxrr7shynyx6flgplc1qzbz3j21cyx3yn7";
|
||||
};
|
||||
|
||||
postUnpack = "sourceRoot=$sourceRoot/hypothesis-python";
|
||||
|
||||
32
pkgs/development/python-modules/imapclient/default.nix
Normal file
32
pkgs/development/python-modules/imapclient/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, isPy34
|
||||
, isPy35
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "IMAPClient";
|
||||
version = "0.13";
|
||||
disabled = isPy34 || isPy35;
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://freshfoo.com/projects/IMAPClient/${pname}-${version}.tar.gz";
|
||||
sha256 = "0v7kd1crdbff0rmh4ddm5qszkis6hpk9084qh94al8h7g4y9l3is";
|
||||
};
|
||||
|
||||
buildInputs = [ mock ];
|
||||
|
||||
preConfigure = ''
|
||||
sed -i '/distribute_setup/d' setup.py
|
||||
substituteInPlace setup.py --replace "mock==0.8.0" "mock"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://imapclient.freshfoo.com/;
|
||||
description = "Easy-to-use, Pythonic and complete IMAP client library";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
||||
26
pkgs/development/python-modules/importmagic/default.nix
Normal file
26
pkgs/development/python-modules/importmagic/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "importmagic";
|
||||
version = "0.1.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "194bl8l8sc2ibwi6g5kz6xydkbngdqpaj6r2gcsaw1fc73iswwrj";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
doCheck = false; # missing json file from tarball
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python Import Magic - automagically add, remove and manage imports";
|
||||
homepage = https://github.com/alecthomas/importmagic;
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
||||
30
pkgs/development/python-modules/isodate/default.nix
Normal file
30
pkgs/development/python-modules/isodate/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "isodate";
|
||||
version = "0.5.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "42105c41d037246dc1987e36d96f3752ffd5c0c24834dd12e4fdbe1e79544e31";
|
||||
};
|
||||
|
||||
# Judging from SyntaxError
|
||||
doCheck = !(isPy3k);
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover -s src/isodate/tests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "ISO 8601 date/time parser";
|
||||
homepage = http://cheeseshop.python.org/pypi/isodate;
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pip
|
||||
, pbr
|
||||
, mock
|
||||
, python-jenkins
|
||||
, pyyaml
|
||||
, six
|
||||
, stevedore
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jenkins-job-builder";
|
||||
version = "2.0.0.0b2";
|
||||
disabled = !isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1y0yl2w6c9c91f9xbjkvff1ag8p72r24nzparrzrw9sl8kn9632x";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
buildInputs = [ pip ];
|
||||
propagatedBuildInputs = [ pbr mock python-jenkins pyyaml six stevedore ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Jenkins Job Builder is a system for configuring Jenkins jobs using simple YAML files stored in Git";
|
||||
homepage = "https://docs.openstack.org/infra/system-config/jjb.html";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ garbas ];
|
||||
};
|
||||
|
||||
}
|
||||
31
pkgs/development/python-modules/jenkinsapi/default.nix
Normal file
31
pkgs/development/python-modules/jenkinsapi/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytz
|
||||
, requests
|
||||
, coverage
|
||||
, mock
|
||||
, nose
|
||||
, unittest2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jenkinsapi";
|
||||
version = "0.2.32";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0fcc78b8dfc87237942aad2a8be54dbc08bc4afceaa7f6897f3d894e7d4bfd22";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pytz requests ];
|
||||
buildInputs = [ coverage mock nose unittest2 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Python API for accessing resources on a Jenkins continuous-integration server";
|
||||
homepage = https://github.com/salimfadhley/jenkinsapi;
|
||||
maintainers = with maintainers; [ drets ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
51
pkgs/development/python-modules/kaa-base/default.nix
Normal file
51
pkgs/development/python-modules/kaa-base/default.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPyPy
|
||||
, isPy3k
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.99.2dev-384-2b73caca";
|
||||
pname = "kaa-base";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0k3zzz84wzz9q1fl3vvqr2ys96z9pcf4viq9q6s2a63zaysmcfd2";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
||||
disabled = isPyPy || isPy3k;
|
||||
|
||||
# Same as in buildPythonPackage except that it does not pass --old-and-unmanageable
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out/lib/${python.libPrefix}/site-packages"
|
||||
|
||||
export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
|
||||
|
||||
${python}/bin/${python.executable} setup.py install \
|
||||
--install-lib=$out/lib/${python.libPrefix}/site-packages \
|
||||
--prefix="$out"
|
||||
|
||||
eapth="$out/lib/${python.libPrefix}"/site-packages/easy-install.pth
|
||||
if [ -e "$eapth" ]; then
|
||||
mv "$eapth" $(dirname "$eapth")/${pname}-${version}.pth
|
||||
fi
|
||||
|
||||
rm -f "$out/lib/${python.libPrefix}"/site-packages/site.py*
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Generic application framework, providing the foundation for other modules";
|
||||
homepage = https://github.com/freevo/kaa-base;
|
||||
license = licenses.lgpl21;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
||||
}
|
||||
56
pkgs/development/python-modules/kaa-metadata/default.nix
Normal file
56
pkgs/development/python-modules/kaa-metadata/default.nix
Normal file
@@ -0,0 +1,56 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, kaa-base
|
||||
, isPyPy
|
||||
, isPy3k
|
||||
, python
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.7.8dev-r4569-20111003";
|
||||
pname = "kaa-metadata";
|
||||
disabled = isPyPy || isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0bkbzfgxvmby8lvzkqjp86anxvv3vjd9nksv2g4l7shsk1n7y27a";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
||||
buildInputs = [ pkgs.libdvdread ];
|
||||
|
||||
propagatedBuildInputs = [ kaa-base ];
|
||||
|
||||
# Same as in buildPythonPackage except that it does not pass --old-and-unmanageable
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out/lib/${python.libPrefix}/site-packages"
|
||||
|
||||
export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
|
||||
|
||||
${python}/bin/${python.executable} setup.py install \
|
||||
--install-lib=$out/lib/${python.libPrefix}/site-packages \
|
||||
--prefix="$out"
|
||||
|
||||
eapth="$out/lib/${python.libPrefix}"/site-packages/easy-install.pth
|
||||
if [ -e "$eapth" ]; then
|
||||
mv "$eapth" $(dirname "$eapth")/${pname}-${version}.pth
|
||||
fi
|
||||
|
||||
rm -f "$out/lib/${python.libPrefix}"/site-packages/site.py*
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python library for parsing media metadata, which can extract metadata (e.g., such as id3 tags) from a wide range of media files";
|
||||
homepage = https://github.com/freevo/kaa-metadata;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
||||
}
|
||||
32
pkgs/development/python-modules/larch/default.nix
Normal file
32
pkgs/development/python-modules/larch/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, sphinx
|
||||
, tracing
|
||||
, ttystatus
|
||||
, cliapp
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "larch";
|
||||
version = "1.20131130";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://code.liw.fi/debian/pool/main/p/python-larch/python-larch_${version}.orig.tar.gz";
|
||||
sha256 = "1hfanp9l6yc5348i3f5sb8c5s4r43y382hflnbl6cnz4pm8yh5r7";
|
||||
};
|
||||
|
||||
buildInputs = [ sphinx ];
|
||||
propagatedBuildInputs = [ tracing ttystatus cliapp ];
|
||||
|
||||
# error: invalid command 'test'
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://liw.fi/larch/;
|
||||
description = "Python B-tree library";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ rickynils ];
|
||||
};
|
||||
|
||||
}
|
||||
31
pkgs/development/python-modules/lasagne/default.nix
Normal file
31
pkgs/development/python-modules/lasagne/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, numpy
|
||||
, Theano
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Lasagne";
|
||||
version = "0.1";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0cqj86rdm6c7y5vq3i13qy76fg5xi3yjp4r0hpqy8hvynv54wqrw";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy Theano ];
|
||||
|
||||
# there are no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Lightweight library to build and train neural networks in Theano";
|
||||
homepage = "https://github.com/Lasagne/Lasagne";
|
||||
maintainers = with maintainers; [ NikolaMandic ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
36
pkgs/development/python-modules/libarchive-c/default.nix
Normal file
36
pkgs/development/python-modules/libarchive-c/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "libarchive-c";
|
||||
version = "2.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "011bfsmqpcwd6920kckllh7zhw2y4rrasgmddb7wjzn2hg1xpsjn";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest pkgs.glibcLocales ];
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace libarchive/ffi.py --replace \
|
||||
"find_library('archive')" "'${pkgs.libarchive.lib}/lib/libarchive.so'"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests -k 'not test_check_archiveentry_with_unicode_entries_and_name_zip and not test_check_archiveentry_using_python_testtar'
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/Changaco/python-libarchive-c;
|
||||
description = "Python interface to libarchive";
|
||||
license = licenses.cc0;
|
||||
};
|
||||
|
||||
}
|
||||
26
pkgs/development/python-modules/linecache2/default.nix
Normal file
26
pkgs/development/python-modules/linecache2/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pbr
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "linecache2";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb";
|
||||
};
|
||||
|
||||
buildInputs = [ pbr ];
|
||||
# circular dependencies for tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A backport of linecache to older supported Pythons";
|
||||
homepage = "https://github.com/testing-cabal/linecache2";
|
||||
license = licenses.psfl;
|
||||
};
|
||||
|
||||
}
|
||||
24
pkgs/development/python-modules/lz4/default.nix
Normal file
24
pkgs/development/python-modules/lz4/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lz4";
|
||||
version = "0.8.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1irad4sq4hdr30fr53smvv3zzk4rddcf9b4jx19w8s9xsxhr1x3b";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Compression library";
|
||||
homepage = https://github.com/python-lz4/python-lz4;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
||||
23
pkgs/development/python-modules/mailcap-fix/default.nix
Normal file
23
pkgs/development/python-modules/mailcap-fix/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy36
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mailcap-fix";
|
||||
version = "1.0.1";
|
||||
disabled = isPy36; # this fix is merged into python 3.6
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "02lijkq6v379r8zkqg9q2srin3i80m4wvwik3hcbih0s14v0ng0i";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A patched mailcap module that conforms to RFC 1524";
|
||||
homepage = "https://github.com/michael-lazar/mailcap_fix";
|
||||
license = licenses.unlicense;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, click
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "maildir-deduplicate";
|
||||
version = "1.0.2";
|
||||
disabled = !isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1xy5z756alrjgpl9qx2gdx898rw1mryrqkwmipbh39mgrvkl3fz9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ click ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Command-line tool to deduplicate mails from a set of maildir folders";
|
||||
homepage = "https://github.com/kdeldycke/maildir-deduplicate";
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
|
||||
}
|
||||
26
pkgs/development/python-modules/mmpython/default.nix
Normal file
26
pkgs/development/python-modules/mmpython/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, isPyPy
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.4.10";
|
||||
pname = "mmpython";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://sourceforge.net/projects/mmpython/files/latest/download;
|
||||
sha256 = "1b7qfad3shgakj37gcj1b9h78j1hxlz6wp9k7h76pb4sq4bfyihy";
|
||||
name = "${pname}-${version}.tar.gz";
|
||||
};
|
||||
|
||||
disabled = isPyPy || isPy3k;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Media Meta Data retrieval framework";
|
||||
homepage = https://sourceforge.net/projects/mmpython/;
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
|
||||
}
|
||||
24
pkgs/development/python-modules/mongodict/default.nix
Normal file
24
pkgs/development/python-modules/mongodict/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pymongo
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mongodict";
|
||||
version = "0.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0nv5amfs337m0gbxpjb0585s20rndqfc3mfrzq1iwgnds5gxcrlw";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pymongo ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "MongoDB-backed Python dict-like interface";
|
||||
homepage = "https://github.com/turicas/mongodict/";
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
|
||||
}
|
||||
40
pkgs/development/python-modules/mox3/default.nix
Normal file
40
pkgs/development/python-modules/mox3/default.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, subunit
|
||||
, testrepository
|
||||
, testtools
|
||||
, six
|
||||
, pbr
|
||||
, fixtures
|
||||
, isPy36
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mox3";
|
||||
version = "0.23.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0q26sg0jasday52a7y0cch13l0ssjvr4yqnvswqxsinj1lv5ld88";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
sed -i 's@python@${python.interpreter}@' .testr.conf
|
||||
'';
|
||||
|
||||
buildInputs = [ subunit testrepository testtools six ];
|
||||
propagatedBuildInputs = [ pbr fixtures ];
|
||||
|
||||
# FAIL: mox3.tests.test_mox.RegexTest.testReprWithFlags
|
||||
# ValueError: cannot use LOCALE flag with a str pattern
|
||||
doCheck = !isPy36;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Mock object framework for Python";
|
||||
homepage = https://docs.openstack.org/mox3/latest/;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
||||
39
pkgs/development/python-modules/mps-youtube/default.nix
Normal file
39
pkgs/development/python-modules/mps-youtube/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, pafy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "mps-youtube-${version}";
|
||||
version = "0.2.7.1";
|
||||
disabled = (!isPy3k);
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mps-youtube";
|
||||
repo = "mps-youtube";
|
||||
rev = "v${version}";
|
||||
sha256 = "16zn5gwb3568w95lr21b88zkqlay61p1541sa9c3x69zpi8v0pys";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pafy ];
|
||||
|
||||
# disabled due to error in loading unittest
|
||||
# don't know how to make test from: <mps_youtube. ...>
|
||||
doCheck = false;
|
||||
|
||||
# before check create a directory and redirect XDG_CONFIG_HOME to it
|
||||
preCheck = ''
|
||||
mkdir -p check-phase
|
||||
export XDG_CONFIG_HOME=$(pwd)/check-phase
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Terminal based YouTube player and downloader";
|
||||
homepage = https://github.com/np1/mps-youtube;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ odi ];
|
||||
};
|
||||
|
||||
}
|
||||
35
pkgs/development/python-modules/neovim_gui/default.nix
Normal file
35
pkgs/development/python-modules/neovim_gui/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, neovim
|
||||
, click
|
||||
, pygobject3
|
||||
, isPy27
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "neovim-pygui";
|
||||
version = "0.1.3";
|
||||
disabled = !isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "neovim";
|
||||
repo = "python-gui";
|
||||
rev = version;
|
||||
sha256 = "1vpvr3zm3f9sxg1z1cl7f7gi8v1xksjdvxj62qnw65aqj3zqxnkz";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ neovim click pygobject3 pkgs.gobjectIntrospection pkgs.makeWrapper pkgs.gtk3 ];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i -e "s|entry_points=entry_points,|entry_points=dict(console_scripts=['pynvim=neovim.ui.cli:main [GUI]']),|" setup.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/pynvim \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
||||
--prefix PYTHONPATH : "${pygobject3}/lib/python2.7/site-packages:$PYTHONPATH"
|
||||
'';
|
||||
|
||||
}
|
||||
32
pkgs/development/python-modules/nose_progressive/default.nix
Normal file
32
pkgs/development/python-modules/nose_progressive/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, pillow
|
||||
, blessings
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nose-progressive";
|
||||
version = "1.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0mfbjv3dcg23q0a130670g7xpfyvgza4wxkj991xxh8w9hs43ga4";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
propagatedBuildInputs = [ pillow blessings ];
|
||||
|
||||
# fails with obscure error
|
||||
doCheck = !isPy3k;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/erikrose/nose-progressive;
|
||||
description = "A testrunner with a progress bar and smarter tracebacks";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -16,12 +16,12 @@ let
|
||||
};
|
||||
in buildPythonPackage rec {
|
||||
pname = "numpy";
|
||||
version = "1.15.2";
|
||||
version = "1.15.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "27a0d018f608a3fe34ac5e2b876f4c23c47e38295c47dd0775cc294cd2614bc1";
|
||||
sha256 = "1c0c80e74759fa4942298044274f2c11b08c86230b25b8b819e55e644f5ff2b6";
|
||||
};
|
||||
|
||||
disabled = isPyPy;
|
||||
|
||||
25
pkgs/development/python-modules/ofxparse/default.nix
Normal file
25
pkgs/development/python-modules/ofxparse/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
, beautifulsoup4
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ofxparse";
|
||||
version = "0.14";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d8c486126a94d912442d040121db44fbc4a646ea70fa935df33b5b4dbfbbe42a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six beautifulsoup4 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://sites.google.com/site/ofxparse";
|
||||
description = "Tools for working with the OFX (Open Financial Exchange) file format";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
30
pkgs/development/python-modules/ofxtools/default.nix
Normal file
30
pkgs/development/python-modules/ofxtools/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, sqlalchemy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ofxtools";
|
||||
version = "0.3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "88f289a60f4312a1599c38a8fb3216e2b46d10cc34476f9a16a33ac8aac7ec35";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover -s ofxtools
|
||||
'';
|
||||
|
||||
buildInputs = [ sqlalchemy ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/csingley/ofxtools";
|
||||
description = "Library for working with Open Financial Exchange (OFX) formatted data used by financial institutions";
|
||||
license = licenses.mit;
|
||||
broken = true;
|
||||
};
|
||||
|
||||
}
|
||||
23
pkgs/development/python-modules/pagerduty/default.nix
Normal file
23
pkgs/development/python-modules/pagerduty/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pagerduty";
|
||||
version = "0.2.1";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e8c237239d3ffb061069aa04fc5b3d8ae4fb0af16a9713fe0977f02261d323e9";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://github.com/samuel/python-pagerduty;
|
||||
description = "Library for the PagerDuty service API";
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
||||
28
pkgs/development/python-modules/pamqp/default.nix
Normal file
28
pkgs/development/python-modules/pamqp/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, mock
|
||||
, nose
|
||||
, pep8
|
||||
, pylint
|
||||
, mccabe
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.6.1";
|
||||
pname = "pamqp";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1vmyvynqzx5zvbipaxff4fnzy3h3dvl3zicyr15yb816j93jl2ca";
|
||||
};
|
||||
|
||||
buildInputs = [ mock nose pep8 pylint mccabe ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "RabbitMQ Focused AMQP low-level library";
|
||||
homepage = https://pypi.python.org/pypi/pamqp;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
||||
24
pkgs/development/python-modules/pandocfilters/default.nix
Normal file
24
pkgs/development/python-modules/pandocfilters/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec{
|
||||
version = "1.4.1";
|
||||
pname = "pandocfilters";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ec8bcd100d081db092c57f93462b1861bcfa1286ef126f34da5cb1d969538acd";
|
||||
};
|
||||
|
||||
# No tests available
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A python module for writing pandoc filters, with a collection of examples";
|
||||
homepage = https://github.com/jgm/pandocfilters;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
27
pkgs/development/python-modules/parsedatetime/default.nix
Normal file
27
pkgs/development/python-modules/parsedatetime/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, pytestrunner
|
||||
, future
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "parsedatetime";
|
||||
version = "2.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1vkrmd398s11h1zn3zaqqsiqhj9lwy1ikcg6irx2lrgjzjg3rjll";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest pytestrunner ];
|
||||
propagatedBuildInputs = [ future ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Parse human-readable date/time text";
|
||||
homepage = "https://github.com/bear/parsedatetime";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
||||
34
pkgs/development/python-modules/parsel/default.nix
Normal file
34
pkgs/development/python-modules/parsel/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, pytestrunner
|
||||
, six
|
||||
, w3lib
|
||||
, lxml
|
||||
, cssselect
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "parsel";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0a34d1c0bj1fzb5dk5744m2ag6v3b8glk4xp0amqxdan9ldbcd97";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest pytestrunner ];
|
||||
propagatedBuildInputs = [ six w3lib lxml cssselect ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/scrapy/parsel";
|
||||
description = "Parsel is a library to extract data from HTML and XML using XPath and CSS selectors";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
||||
27
pkgs/development/python-modules/parsimonious/default.nix
Normal file
27
pkgs/development/python-modules/parsimonious/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, nose
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.7.0";
|
||||
pname = "parsimonious";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "parsimonious";
|
||||
owner = "erikrose";
|
||||
rev = version;
|
||||
sha256 = "087npc8ccryrxabmqifcz56w4wd0hzmv0mc91wrbhc1sil196j0a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ nose six ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/erikrose/parsimonious";
|
||||
description = "Fast arbitrary-lookahead parser written in pure Python";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
31
pkgs/development/python-modules/paste/default.nix
Normal file
31
pkgs/development/python-modules/paste/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "paste";
|
||||
version = "2.0.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "062jk0nlxf6lb2wwj6zc20rlvrwsnikpkh90y0dn8cjch93s6ii3";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
# Certain tests require network
|
||||
checkPhase = ''
|
||||
NOSE_EXCLUDE=test_ok,test_form,test_error,test_stderr,test_paste_website nosetests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Tools for using a Web Server Gateway Interface stack";
|
||||
homepage = http://pythonpaste.org/;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
24
pkgs/development/python-modules/pastedeploy/default.nix
Normal file
24
pkgs/development/python-modules/pastedeploy/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.5.2";
|
||||
pname = "PasteDeploy";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d5858f89a255e6294e63ed46b73613c56e3b9a2d82a42f1df4d06c8421a9e3cb";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Load, configure, and compose WSGI applications and servers";
|
||||
homepage = http://pythonpaste.org/deploy/;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
32
pkgs/development/python-modules/pastescript/default.nix
Normal file
32
pkgs/development/python-modules/pastescript/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, six
|
||||
, paste
|
||||
, PasteDeploy
|
||||
, cheetah
|
||||
, argparse
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.7.5";
|
||||
pname = "PasteScript";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "2b685be69d6ac8bc0fe6f558f119660259db26a15e16a4943c515fbee8093539";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
propagatedBuildInputs = [ six paste PasteDeploy cheetah argparse ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A pluggable command-line frontend, including commands to setup package file layouts";
|
||||
homepage = http://pythonpaste.org/script/;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
26
pkgs/development/python-modules/patch/default.nix
Normal file
26
pkgs/development/python-modules/patch/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchzip
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.16";
|
||||
pname = "patch";
|
||||
|
||||
src = fetchzip {
|
||||
url = "mirror://pypi/p/${pname}/${pname}-${version}.zip";
|
||||
sha256 = "1nj55hvyvzax4lxq7vkyfbw91pianzr3hp7ka7j12pgjxccac50g";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
# No tests included in archive
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A library to parse and apply unified diffs";
|
||||
homepage = https://github.com/techtonik/python-patch/;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.igsha ];
|
||||
};
|
||||
|
||||
}
|
||||
30
pkgs/development/python-modules/pathos/default.nix
Normal file
30
pkgs/development/python-modules/pathos/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, dill
|
||||
, pox
|
||||
, ppft
|
||||
, multiprocess
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pathos";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e35418af733bf434da83746d46acca94375d6e306b3df330b2a1808db026a188";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ dill pox ppft multiprocess ];
|
||||
|
||||
# Require network
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Parallel graph management and execution in heterogeneous computing";
|
||||
homepage = http://www.cacr.caltech.edu/~mmckerns/pathos.htm;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
||||
25
pkgs/development/python-modules/pdfkit/default.nix
Normal file
25
pkgs/development/python-modules/pdfkit/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pdfkit";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "1p1m6gp51ql3wzjs2iwds8sc3hg1i48yysii9inrky6qc3s6q5vf";
|
||||
};
|
||||
|
||||
# tests are not distributed
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://pypi.python.org/pypi/pdfkit;
|
||||
description = "Wkhtmltopdf python wrapper to convert html to pdf using the webkit rendering engine and qt";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
26
pkgs/development/python-modules/pep8/default.nix
Normal file
26
pkgs/development/python-modules/pep8/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonAtLeast
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pep8";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a113d5f5ad7a7abacef9df5ec3f2af23a20a28005921577b15dd584d099d5900";
|
||||
};
|
||||
|
||||
# FAIL: test_checkers_testsuite (testsuite.test_all.Pep8TestCase)
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://pep8.readthedocs.org/";
|
||||
description = "Python style guide checker";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ garbas ];
|
||||
};
|
||||
|
||||
}
|
||||
24
pkgs/development/python-modules/percol/default.nix
Normal file
24
pkgs/development/python-modules/percol/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "percol";
|
||||
version = "0.0.8";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "169s5mhw1s60qbsd6pkf9bb2x6wfgx8hn8nw9d4qgc68qnnpp2cj";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/mooz/percol;
|
||||
description = "Adds flavor of interactive filtering to the traditional pipe concept of shell";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ koral ];
|
||||
};
|
||||
|
||||
}
|
||||
21
pkgs/development/python-modules/pexif/default.nix
Normal file
21
pkgs/development/python-modules/pexif/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pexif";
|
||||
version = "0.15";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "45a3be037c7ba8b64bbfc48f3586402cc17de55bb9d7357ef2bc99954a18da3f";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A module for editing JPEG EXIF data";
|
||||
homepage = http://www.benno.id.au/code/pexif/;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
25
pkgs/development/python-modules/pg8000/default.nix
Normal file
25
pkgs/development/python-modules/pg8000/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytz
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pg8000";
|
||||
version = "1.10.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "188658db63c2ca931ae1bf0167b34efaac0ecc743b707f0118cc4b87e90ce488";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pytz ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/realazthat/aiopg8000;
|
||||
description = "PostgreSQL interface library, for asyncio";
|
||||
maintainers = with maintainers; [ garbas domenkozar ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
|
||||
}
|
||||
24
pkgs/development/python-modules/pgpdump/default.nix
Normal file
24
pkgs/development/python-modules/pgpdump/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pgpdump";
|
||||
version = "1.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0s4nh8h7qsdj2yf29bspjs1zvxd4lcd11r6g11dp7fppgf2h0iqw";
|
||||
};
|
||||
|
||||
# Disabling check because of: https://github.com/toofishes/python-pgpdump/issues/18
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python library for parsing PGP packets";
|
||||
homepage = https://github.com/toofishes/python-pgpdump;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
||||
30
pkgs/development/python-modules/pickleshare/default.nix
Normal file
30
pkgs/development/python-modules/pickleshare/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pathpy
|
||||
, pathlib2
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.7.4";
|
||||
pname = "pickleshare";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "84a9257227dfdd6fe1b4be1319096c20eb85ff1e82c7932f36efccfe1b09737b";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pathpy ]
|
||||
++ stdenv.lib.optional (pythonOlder "3.4") pathlib2;
|
||||
|
||||
# No proper test suite
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Tiny 'shelve'-like database with concurrency support";
|
||||
homepage = https://github.com/vivainio/pickleshare;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
27
pkgs/development/python-modules/pid/default.nix
Normal file
27
pkgs/development/python-modules/pid/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pid";
|
||||
version = "2.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0cylj8p25nwkdfgy4pzai21wyzmrxdqlwwbzqag9gb5qcjfdwk05";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
|
||||
# No tests included
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Pidfile featuring stale detection and file-locking";
|
||||
homepage = https://github.com/trbs/pid/;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
||||
27
pkgs/development/python-modules/piep/default.nix
Normal file
27
pkgs/development/python-modules/piep/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pygments
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.8.0";
|
||||
pname = "piep";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1wgkg1kc28jpya5k4zvbc9jmpa60b3d5c3gwxfbp15hw6smyqirj";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pygments ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Bringing the power of python to stream editing";
|
||||
homepage = https://github.com/timbertson/piep;
|
||||
maintainers = with maintainers; [ timbertson ];
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
|
||||
}
|
||||
35
pkgs/development/python-modules/pika/default.nix
Normal file
35
pkgs/development/python-modules/pika/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, nose
|
||||
, mock
|
||||
, pyyaml
|
||||
, unittest2
|
||||
, pyev
|
||||
, twisted
|
||||
, tornado
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pika";
|
||||
version = "0.10.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0nb4h08di432lv7dy2v9kpwgk0w92f24sqc2hw2s9vwr5b8v8xvj";
|
||||
};
|
||||
|
||||
# Tests require twisted which is only availalble for python-2.x
|
||||
doCheck = !isPy3k;
|
||||
|
||||
buildInputs = [ nose mock pyyaml unittest2 pyev ]
|
||||
++ stdenv.lib.optionals (!isPy3k) [ twisted tornado ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Pure-Python implementation of the AMQP 0-9-1 protocol";
|
||||
homepage = https://pika.readthedocs.org;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
||||
36
pkgs/development/python-modules/pilkit/default.nix
Normal file
36
pkgs/development/python-modules/pilkit/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pillow
|
||||
, nose_progressive
|
||||
, nose
|
||||
, mock
|
||||
, blessings
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pilkit";
|
||||
version = "1.1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e00585f5466654ea2cdbf7decef9862cb00e16fd363017fa7ef6623a16b0d2c7";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace setup.py --replace 'nose==1.2.1' 'nose'
|
||||
'';
|
||||
|
||||
# tests fail, see https://github.com/matthewwithanm/pilkit/issues/9
|
||||
doCheck = false;
|
||||
|
||||
buildInputs = [ pillow nose_progressive nose mock blessings ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://github.com/matthewwithanm/pilkit/;
|
||||
description = "A collection of utilities and processors for the Python Imaging Libary";
|
||||
license = licenses.bsd0;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
|
||||
}
|
||||
36
pkgs/development/python-modules/pip2nix/default.nix
Normal file
36
pkgs/development/python-modules/pip2nix/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, click
|
||||
, configobj
|
||||
, contexter
|
||||
, jinja2
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pip2nix";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ec9a71e09ac7f43cc7b6c9d386384eb7b5c331bf6ea0e72ca559d87979397a95";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ click configobj contexter jinja2 pytest ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i "s/'pip>=8,<10'/'pip'/" setup.py
|
||||
sed -i "s/pip<10,>=8/pip/" ${pname}.egg-info/requires.txt
|
||||
'';
|
||||
|
||||
# tests not included with pypi release
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Generate Nix expressions for Python packages";
|
||||
homepage = https://github.com/johbo/pip2nix;
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
|
||||
}
|
||||
27
pkgs/development/python-modules/pivy/default.nix
Normal file
27
pkgs/development/python-modules/pivy/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchhg
|
||||
, pkgs
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "20101207";
|
||||
pname = "pivy";
|
||||
disabled = isPy3k; # Judging from SyntaxError
|
||||
|
||||
src = fetchhg {
|
||||
url = "https://bitbucket.org/Coin3D/pivy";
|
||||
rev = "8eab90908f2a3adcc414347566f4434636202344";
|
||||
sha256 = "18n14ha2d3j3ghg2f2aqnf2mks94nn7ma9ii7vkiwcay93zm82cf";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.swig1 pkgs.coin3d pkgs.soqt pkgs.libGLU_combined pkgs.xorg.libXi ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://pivy.coin3d.org/;
|
||||
description = "A Python binding for Coin";
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
||||
21
pkgs/development/python-modules/posix_ipc/default.nix
Normal file
21
pkgs/development/python-modules/posix_ipc/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "posix_ipc";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1jzg66708pi5n9w07fbz6rlxx30cjds9hp2yawjjfryafh1hg4ww";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "POSIX IPC primitives (semaphores, shared memory and message queues)";
|
||||
license = licenses.bsd3;
|
||||
homepage = http://semanchuk.com/philip/posix_ipc/;
|
||||
};
|
||||
|
||||
}
|
||||
24
pkgs/development/python-modules/power/default.nix
Normal file
24
pkgs/development/python-modules/power/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "power";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "7d7d60ec332acbe3a7d00379b45e39abf650bf7ee311d61da5ab921f52f060f0";
|
||||
};
|
||||
|
||||
# Tests can't work because there is no power information available.
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Cross-platform system power status information";
|
||||
homepage = https://github.com/Kentzo/Power;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
21
pkgs/development/python-modules/pox/default.nix
Normal file
21
pkgs/development/python-modules/pox/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pox";
|
||||
version = "0.2.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "22e97ac6d2918c754e65a9581dbe02e9d00ae4a54ca48d05118f87c1ea92aa19";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Utilities for filesystem exploration and automated builds";
|
||||
license = licenses.bsd3;
|
||||
homepage = http://www.cacr.caltech.edu/~mmckerns/pox.htm;
|
||||
};
|
||||
|
||||
}
|
||||
24
pkgs/development/python-modules/ppft/default.nix
Normal file
24
pkgs/development/python-modules/ppft/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ppft";
|
||||
version = "1.6.4.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6f99c861822884cb00badbd5f364ee32b90a157084a6768040793988c6b92bff";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Distributed and parallel python";
|
||||
homepage = https://github.com/uqfoundation;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
||||
28
pkgs/development/python-modules/prettytable/default.nix
Normal file
28
pkgs/development/python-modules/prettytable/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, glibcLocales
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "prettytable";
|
||||
version = "0.7.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "599bc5b4b9602e28294cf795733c889c26dd934aa7e0ee9cff9b905d4fbad188";
|
||||
};
|
||||
|
||||
buildInputs = [ glibcLocales ];
|
||||
|
||||
preCheck = ''
|
||||
export LANG="en_US.UTF-8"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Simple Python library for easily displaying tabular data in a visually appealing ASCII table format";
|
||||
homepage = http://code.google.com/p/prettytable/;
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
||||
24
pkgs/development/python-modules/process-tests/default.nix
Normal file
24
pkgs/development/python-modules/process-tests/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "process-tests";
|
||||
version = "1.2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "65c9d7a0260f31c15b4a22a851757e61f7072d0557db5f8a976112fbe81ff7e9";
|
||||
};
|
||||
|
||||
# No tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Tools for testing processes";
|
||||
license = licenses.bsd2;
|
||||
homepage = https://github.com/ionelmc/python-process-tests;
|
||||
};
|
||||
|
||||
}
|
||||
23
pkgs/development/python-modules/ptest/default.nix
Normal file
23
pkgs/development/python-modules/ptest/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ptest";
|
||||
version = "1.5.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "KarlGong";
|
||||
repo = pname;
|
||||
rev = version + "-release";
|
||||
sha256 = "1r50lm6n59jzdwpp53n0c0hp3aj1jxn304bk5gh830226gsaf2hn";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Test classes and test cases using decorators, execute test cases by command line, and get clear reports";
|
||||
homepage = https://pypi.python.org/pypi/ptest;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
||||
21
pkgs/development/python-modules/purepng/default.nix
Normal file
21
pkgs/development/python-modules/purepng/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "purepng";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1kcl7a6d7d59360fbz2jwfk6ha6pmqgn396962p4s62j893d2r0d";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Pure Python library for PNG image encoding/decoding";
|
||||
homepage = https://github.com/scondo/purepng;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
30
pkgs/development/python-modules/pweave/default.nix
Normal file
30
pkgs/development/python-modules/pweave/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, mock
|
||||
, matplotlib
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Pweave";
|
||||
version = "0.25";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1isqjz66c7vxdaqfwpkspki9p4054dsfx7pznwz28ik634hnj3qw";
|
||||
};
|
||||
|
||||
buildInputs = [ mock pkgs.glibcLocales ];
|
||||
propagatedBuildInputs = [ matplotlib ];
|
||||
|
||||
# fails due to trying to run CSS as test
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Scientific reports with embedded python computations with reST, LaTeX or markdown";
|
||||
homepage = http://mpastell.com/pweave/ ;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, setuptools_scm }:
|
||||
buildPythonPackage rec {
|
||||
pname = "py";
|
||||
version = "1.5.4";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3fd59af7435864e1a243790d322d763925431213b6b8529c6ca71081ace3bbf7";
|
||||
sha256 = "bf92637198836372b520efcba9e020c330123be8ce527e535d185ed4b6f45694";
|
||||
};
|
||||
|
||||
# Circular dependency on pytest
|
||||
|
||||
30
pkgs/development/python-modules/py3dns/default.nix
Normal file
30
pkgs/development/python-modules/py3dns/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "py3dns";
|
||||
version = "3.1.1a";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0z0qmx9j1ivpgg54gqqmh42ljnzxaychc5inz2gbgv0vls765smz";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
sed -i \
|
||||
-e '/import DNS/d' \
|
||||
-e 's/DNS.__version__/"${version}"/g' \
|
||||
setup.py
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python 3 DNS library";
|
||||
homepage = https://launchpad.net/py3dns;
|
||||
license = licenses.psfl;
|
||||
};
|
||||
|
||||
}
|
||||
34
pkgs/development/python-modules/pyacoustid/default.nix
Normal file
34
pkgs/development/python-modules/pyacoustid/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, requests
|
||||
, audioread
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyacoustid";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0117039cb116af245e6866e8e8bf3c9c8b2853ad087142bd0c2dfc0acc09d452";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests audioread ];
|
||||
|
||||
patches = [ ./pyacoustid-py3.patch ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i \
|
||||
-e '/^FPCALC_COMMAND *=/s|=.*|= "${pkgs.chromaprint}/bin/fpcalc"|' \
|
||||
acoustid.py
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Bindings for Chromaprint acoustic fingerprinting";
|
||||
homepage = "https://github.com/sampsyo/pyacoustid";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
28
pkgs/development/python-modules/pyalgotrade/default.nix
Normal file
28
pkgs/development/python-modules/pyalgotrade/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, numpy
|
||||
, scipy
|
||||
, pytz
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyalgotrade";
|
||||
version = "0.16";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a253617254194b91cfebae7bfd184cb109d4e48a8c70051b9560000a2c0f94b3";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy scipy pytz ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python Algorithmic Trading";
|
||||
homepage = http://gbeced.github.io/pyalgotrade/;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
||||
26
pkgs/development/python-modules/pyaudio/default.nix
Normal file
26
pkgs/development/python-modules/pyaudio/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPyPy
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-pyaudio";
|
||||
version = "0.2.9";
|
||||
disabled = isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "bfd694272b3d1efc51726d0c27650b3c3ba1345f7f8fdada7e86c9751ce0f2a1";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.portaudio ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python bindings for PortAudio";
|
||||
homepage = "http://people.csail.mit.edu/hubert/pyaudio/";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
21
pkgs/development/python-modules/pybcrypt/default.nix
Normal file
21
pkgs/development/python-modules/pybcrypt/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pybcrypt";
|
||||
version = "0.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5fa13bce551468350d66c4883694850570f3da28d6866bb638ba44fe5eabda78";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "bcrypt password hashing and key derivation";
|
||||
homepage = https://code.google.com/p/py-bcrypt2;
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
||||
38
pkgs/development/python-modules/pyblock/default.nix
Normal file
38
pkgs/development/python-modules/pyblock/default.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, python
|
||||
, pkgs
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pyblock-${version}";
|
||||
version = "0.53";
|
||||
md5_path = "f6d33a8362dee358517d0a9e2ebdd044";
|
||||
|
||||
src = pkgs.fetchurl rec {
|
||||
url = "http://src.fedoraproject.org/repo/pkgs/python-pyblock/"
|
||||
+ "${name}.tar.bz2/${md5_path}/${name}.tar.bz2";
|
||||
sha256 = "f6cef88969300a6564498557eeea1d8da58acceae238077852ff261a2cb1d815";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e 's|/usr/include/python|${python}/include/python|' \
|
||||
-e 's/-Werror *//' -e 's|/usr/|'"$out"'/|' Makefile
|
||||
'';
|
||||
|
||||
buildInputs = [ python pkgs.lvm2 pkgs.dmraid ];
|
||||
|
||||
makeFlags = [
|
||||
"USESELINUX=0"
|
||||
"SITELIB=$(out)/${python.sitePackages}"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://www.centos.org/docs/5/html/5.4/Technical_Notes/python-pyblock.html;
|
||||
description = "Interface for working with block devices";
|
||||
license = licenses.gpl2Plus;
|
||||
broken = isPy3k; # doesn't build on python 3, 2018-04-11
|
||||
};
|
||||
|
||||
}
|
||||
31
pkgs/development/python-modules/pyblosxom/default.nix
Normal file
31
pkgs/development/python-modules/pyblosxom/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, pygments
|
||||
, markdown
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyblosxom";
|
||||
version = "1.5.3";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/pyblosxom/pyblosxom/archive/v${version}.tar.gz";
|
||||
sha256 = "0de9a7418f4e6d1c45acecf1e77f61c8f96f036ce034493ac67124626fd0d885";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pygments markdown ];
|
||||
|
||||
# FAIL:test_generate_entry and test_time
|
||||
# both tests fail due to time issue that doesn't seem to matter in practice
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://pyblosxom.github.io";
|
||||
description = "File-based blogging engine";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
34
pkgs/development/python-modules/pycapnp/default.nix
Normal file
34
pkgs/development/python-modules/pycapnp/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, capnproto
|
||||
, cython
|
||||
, isPyPy
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycapnp";
|
||||
version = "0.6.3";
|
||||
disabled = isPyPy || isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b3c5a1fcc93fd02fdc070aeccb89654b87f20bdc740f643cc6378925ed6d4c17";
|
||||
};
|
||||
|
||||
buildInputs = [ capnproto cython ];
|
||||
|
||||
# import setuptools as soon as possible, to minimize monkeypatching mayhem.
|
||||
postConfigure = ''
|
||||
sed -i '3iimport setuptools' setup.py
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
maintainers = with maintainers; [ cstrahan ];
|
||||
license = licenses.bsd2;
|
||||
homepage = "http://jparyani.github.io/pycapnp/index.html";
|
||||
broken = true; # 2018-04-11
|
||||
};
|
||||
|
||||
}
|
||||
31
pkgs/development/python-modules/pycarddav/default.nix
Normal file
31
pkgs/development/python-modules/pycarddav/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, isPyPy
|
||||
, vobject
|
||||
, lxml
|
||||
, requests
|
||||
, urwid
|
||||
, pyxdg
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.7.0";
|
||||
pname = "pycarddav";
|
||||
disabled = isPy3k || isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0avkrcpisfvhz103v7vmq2jd83hvmpqrb4mlbx6ikkk1wcvclsx8";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ vobject lxml requests urwid pyxdg ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Command-line interface carddav client";
|
||||
homepage = http://lostpackets.de/pycarddav;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
44
pkgs/development/python-modules/pycdio/default.nix
Normal file
44
pkgs/development/python-modules/pycdio/default.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, nose
|
||||
, pkgs
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycdio";
|
||||
version = "2.0.0";
|
||||
disabled = !isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1a1h0lmfl56a2a9xqhacnjclv81nv3906vdylalybxrk4bhrm3hj";
|
||||
};
|
||||
|
||||
prePatch = "sed -i -e '/DRIVER_BSDI/d' pycdio.py";
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
buildInputs = [ setuptools nose pkgs.swig pkgs.libcdio ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin pkgs.libiconv;
|
||||
|
||||
# Run tests using nosetests but first need to install the binaries
|
||||
# to the root source directory where they can be found.
|
||||
checkPhase = ''
|
||||
./setup.py install_lib -d .
|
||||
nosetests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.gnu.org/software/libcdio/;
|
||||
description = "Wrapper around libcdio (CD Input and Control library)";
|
||||
maintainers = with maintainers; [ rycee ];
|
||||
license = licenses.gpl3Plus;
|
||||
};
|
||||
|
||||
}
|
||||
30
pkgs/development/python-modules/pychef/default.nix
Normal file
30
pkgs/development/python-modules/pychef/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
, requests
|
||||
, mock
|
||||
, unittest2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "PyChef";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0zdz8lw545cd3a34cpib7mdwnad83gr2mrrxyj3v74h4zhwabhmg";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six requests mock unittest2 ];
|
||||
|
||||
# FIXME
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://github.com/coderanger/pychef;
|
||||
description = "Python implementation of a Chef API client";
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
{ lib, buildPythonPackage, fetchPypi, fetchpatch }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycodestyle";
|
||||
@@ -9,6 +9,14 @@ buildPythonPackage rec {
|
||||
sha256 = "cbfca99bd594a10f674d0cd97a3d802a1fdef635d4361e1a2658de47ed261e3a";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/PyCQA/pycodestyle/pull/801
|
||||
(fetchpatch {
|
||||
url = https://github.com/PyCQA/pycodestyle/commit/397463014fda3cdefe8d6c9d117ae16d878dc494.patch;
|
||||
sha256 = "01zask2y2gim5il9lcmlhr2qaadv9v7kaw1y619l8xbjhpbq2zh8";
|
||||
})
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python style guide checker (formerly called pep8)";
|
||||
homepage = https://pycodestyle.readthedocs.io;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user