···1414buildPythonPackage rec {
1515 pname = "Cython";
1616 name = "${pname}-${version}";
1717- version = "0.26";
1717+ version = "0.26.1";
18181919 src = fetchPypi {
2020 inherit pname version;
2121- sha256 = "4c24e2c22ddaed624d35229dc5db25049e9e225c6f64f3364326836cad8f2c66";
2121+ sha256 = "c2e63c4794161135adafa8aa4a855d6068073f421c83ffacc39369497a189dd5";
2222 };
23232424 # With Python 2.x on i686-linux or 32-bit ARM this test fails because the
+30
pkgs/development/python-modules/GeoIP/default.nix
···11+{lib, buildPythonPackage, fetchPypi, isPy3k, incremental, ipaddress, twisted
22+, automat, zope_interface, idna, pyopenssl, service-identity, pytest, mock, lsof
33+, geoip, nose}:
44+55+buildPythonPackage rec {
66+ name = "${pname}-${version}";
77+ pname = "GeoIP";
88+ version = "1.3.2";
99+1010+ checkInputs = [ nose ];
1111+ propagatedBuildInputs = [
1212+ geoip
1313+ ];
1414+1515+ src = fetchPypi {
1616+ inherit pname version;
1717+ sha256 = "1rphxf3vrn8wywjgr397f49s0s22m83lpwcq45lm0h2p45mdm458";
1818+ };
1919+2020+ # Tests cannot be run because they require data that isn't included in the
2121+ # release tarball.
2222+ checkPhase = "true";
2323+2424+ meta = {
2525+ description = "MaxMind GeoIP Legacy Database - Python API";
2626+ homepage = http://www.maxmind.com/;
2727+ maintainers = with lib.maintainers; [ jluttine ];
2828+ license = lib.licenses.lgpl21Plus;
2929+ };
3030+}
···7676 chmod a+x pbcopy pbpaste
7777 export PATH=$(pwd):$PATH
7878 '' + ''
7979+ # since dateutil 0.6.0 the following fails: test_fallback_plural, test_ambiguous_flags, test_ambiguous_compat
8080+ # was supposed to be solved by https://github.com/dateutil/dateutil/issues/321, but is not the case
7981 py.test $out/${python.sitePackages}/pandas --skip-slow --skip-network \
8080- ${if isDarwin then "-k 'not test_locale and not test_clipboard'" else ""}
8282+ -k "not test_fallback_plural and \
8383+ not test_ambiguous_flags and \
8484+ not test_ambiguous_compat \
8585+ ${optionalString isDarwin "and not test_locale and not test_clipboard"}"
8186 runHook postCheck
8287 '';
8388
···11+{ lib
22+, buildPythonPackage
33+, fetchPypi
44+, pytest
55+, docopt
66+, six
77+, wcwidth
88+, pygments
99+}:
1010+1111+buildPythonPackage rec {
1212+ pname = "prompt_toolkit";
1313+ name = "${pname}-${version}";
1414+ version = "1.0.15";
1515+1616+ src = fetchPypi {
1717+ inherit pname version;
1818+ sha256 = "858588f1983ca497f1cf4ffde01d978a3ea02b01c8a26a8bbc5cd2e66d816917";
1919+ };
2020+ checkPhase = ''
2121+ rm prompt_toolkit/win32_types.py
2222+ py.test -k 'not test_pathcompleter_can_expanduser'
2323+ '';
2424+2525+ checkInputs = [ pytest ];
2626+ propagatedBuildInputs = [ docopt six wcwidth pygments ];
2727+2828+ meta = {
2929+ description = "Python library for building powerful interactive command lines";
3030+ longDescription = ''
3131+ prompt_toolkit could be a replacement for readline, but it can be
3232+ much more than that. It is cross-platform, everything that you build
3333+ with it should run fine on both Unix and Windows systems. Also ships
3434+ with a nice interactive Python shell (called ptpython) built on top.
3535+ '';
3636+ homepage = https://github.com/jonathanslenders/python-prompt-toolkit;
3737+ license = lib.licenses.bsd3;
3838+ maintainers = with lib.maintainers; [ nckx ];
3939+ };
4040+}