Merge commit '3ab2949' from staging into master

Conflicts:
	pkgs/development/compilers/llvm/6/llvm.nix
	pkgs/servers/home-assistant/component-packages.nix
This commit is contained in:
Tuomas Tynkkynen
2018-03-15 22:30:56 +02:00
323 changed files with 2064 additions and 3432 deletions

View File

@@ -3,15 +3,13 @@
, pytestrunner, requests-mock, pytestcov, pytest
}:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "MechanicalSoup";
version = "0.9.0.post4";
version = "0.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "ce8f822afbc9bef1499be417e8d5deecd0cd32606420165700e89477955f03ab";
sha256 = "22423efd025c3eedb06f41d3ff1127174a59f40dc560e82dce143956976195bf";
};
checkInputs = [ pytest pytestrunner requests-mock pytestcov ];

View File

@@ -6,12 +6,11 @@
buildPythonPackage rec {
pname = "absl-py";
version = "0.1.9";
name = "${pname}-${version}";
version = "0.1.10";
src = fetchPypi {
inherit pname version;
sha256 = "1c787e3bc7ef8fea7a8a79cf36b0c550b4bd66e13c05d1352fbc5786488befb0";
sha256 = "908eba9a96a37c10f10074aba57d685070b814906b02a1ea2cf54bb10a6b8c74";
};
propagatedBuildInputs = [ six ];

View File

@@ -1,13 +1,17 @@
{ lib, buildPythonPackage, fetchPypi }:
{ lib, buildPythonPackage, fetchPypi, isPy3k }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "affinity";
version = "0.1.0";
# syntax error
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1i6j7kszvnzh5vh9k48cqwx2kzf73a6abgv9s6bf0j2zmfjl2wb6";
};
meta = {
description = "control processor affinity on windows and linux";
homepage = http://cheeseshop.python.org/pypi/affinity;

View File

@@ -0,0 +1,26 @@
{ lib, stdenv, buildPythonPackage, fetchPypi, aiohttp, jinja2, pytest, pytest-aiohttp }:
buildPythonPackage rec {
pname = "aiohttp-jinja2";
version = "0.16.0";
src = fetchPypi {
inherit pname version;
sha256 = "1ps182yrc5g9ph55927a7ssqx6m9kx0bivfxpaj8sa3znrdkl94d";
};
propagatedBuildInputs = [ aiohttp jinja2 ];
checkInputs = [ pytest pytest-aiohttp ];
checkPhase = ''
py.test
'';
meta = with lib; {
description = "Jinja2 support for aiohttp";
homepage = https://github.com/aio-libs/aiohttp_jinja2;
license = licenses.asl20;
maintainers = with maintainers; [ peterhoeg ];
};
}

View File

@@ -3,7 +3,7 @@
buildPythonPackage rec {
pname = "aniso8601";
version = "2.0.0";
version = "2.0.1";
name = "${pname}-${version}";
meta = with stdenv.lib; {
@@ -16,6 +16,6 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "085786415d3550e89785ffbedaa9bb37d41de0707a1268bdbba11249064b71d1";
sha256 = "b7215a41e5194a829dc87d1ea5039315be85a6158ba15c8157a284c29fa6808b";
};
}

View File

@@ -1,22 +1,21 @@
{ stdenv, buildPythonPackage, fetchurl
{ stdenv, buildPythonPackage, fetchPypi
, sqlite, isPyPy }:
buildPythonPackage rec {
pname = "apsw";
version = "3.7.6.2-r1";
name = "${pname}-${version}";
version = "3.9.2-r1";
disabled = isPyPy;
src = fetchurl {
url = "http://apsw.googlecode.com/files/${name}.zip";
sha256 = "cb121b2bce052609570a2f6def914c0aa526ede07b7096dddb78624d77f013eb";
src = fetchPypi {
inherit pname version;
sha256 = "dab96fd164dde9e59f7f27228291498217fa0e74048e2c08c7059d7e39589270";
};
buildInputs = [ sqlite ];
# python: double free or corruption (fasttop): 0x0000000002fd4660 ***
doCheck = false;
# doCheck = false;
meta = with stdenv.lib; {
description = "A Python wrapper for the SQLite embedded relational database engine";

View File

@@ -1,15 +1,23 @@
{ stdenv, buildPythonPackage, fetchurl, six, async-timeout }:
{ stdenv, buildPythonPackage, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
buildPythonPackage rec {
version = "2.2.0";
pname = "asgiref";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/a/asgiref/${name}.tar.gz";
sha256 = "1fmrd749hqxwicnivvgrcw812gbj2zm49zcnkghh9yxbkjfcvxcv";
# PyPI tarball doesn't include tests directory
src = fetchFromGitHub {
owner = "django";
repo = pname;
rev = version;
sha256 = "0jsdkgwzswm1jbfm6d100yfvfzpic8v6ysydcnn798bbpwclj8ip";
};
propagatedBuildInputs = [ six async-timeout ];
propagatedBuildInputs = [ async-timeout ];
checkInputs = [ pytest pytest-asyncio ];
checkPhase = ''
py.test
'';
meta = with stdenv.lib; {
description = "Reference ASGI adapters and channel layers";

View File

@@ -1,19 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi, pytz, pytest }:
{ stdenv, buildPythonPackage, fetchPypi, pytz, requests, pytest }:
buildPythonPackage rec {
pname = "astral";
version = "1.5";
version = "1.6";
src = fetchPypi {
inherit pname version;
sha256 = "527628fbfe90c1596c3950ff84ebd07ecc10c8fb1044c903a0519b5057700cb6";
sha256 = "874b397ddbf0a4c1d8d644b21c2481e8a96b61343f820ad52d8a322d61a15083";
};
propagatedBuildInputs = [ pytz ];
propagatedBuildInputs = [ pytz requests ];
checkInputs = [ pytest ];
checkPhase = ''
py.test -k "not test_GoogleLocator"
# https://github.com/sffjunkie/astral/pull/13
touch src/test/.api_key
py.test -m "not webtest"
'';
meta = with stdenv.lib; {

View File

@@ -2,7 +2,7 @@
buildPythonPackage rec {
pname = "asynctest";
version = "0.11.1";
version = "0.12.0";
disabled = pythonOlder "3.4";
@@ -11,7 +11,7 @@ buildPythonPackage rec {
owner = "Martiusweb";
repo = pname;
rev = "v${version}";
sha256 = "1vvh5vbq2fbz6426figs85z8779r7svb4dp2v3xynhhv05nh2y6v";
sha256 = "0rcb3kz2m0iwvgxpx2avfz9cqsd9xbaq93zykr2fki3ikmnp3vyg";
};
postPatch = ''

View File

@@ -5,14 +5,14 @@
}:
buildPythonApplication rec {
pname = "behave";
version = "1.2.5";
version = "1.2.6";
name = "${pname}-${version}";
disabled = pythonAtLeast "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "81b731ac5187e31e4aad2594944fa914943683a9818320846d037c5ebd6d5d0b";
sha256 = "b9662327aa53294c1351b0a9c369093ccec1d21026f050c3bd9b3e5cccf81a86";
};
checkInputs = [ mock nose pyhamcrest ];

View File

@@ -1,20 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pyparsing
, future
, nose
, glibcLocales
}:
buildPythonPackage rec {
pname = "bibtexparser";
version = "1.0.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "cc41cdd8332c2bf44b97daf1f135f4f267c3b744c33976655cd270b66f964c0a";
# PyPI tarball does not ship tests
src = fetchFromGitHub {
owner = "sciunto-org";
repo = "python-${pname}";
rev = "v${version}";
sha256 = "0lmlarkfbq2hp1wa04a62245jr2mqizqsdlgilj5aq6vy92gr6ai";
};
# No tests in archive
doCheck = false;
propagatedBuildInputs = [ pyparsing future ];
checkInputs = [ nose glibcLocales ];
checkPhase = ''
LC_ALL="en_US.UTF-8" nosetests
'';
meta = {
description = "Bibtex parser for python 2.7 and 3.3 and newer";

View File

@@ -0,0 +1,27 @@
{ lib, buildPythonPackage, fetchPypi, chardet, hypothesis }:
buildPythonPackage rec {
pname = "binaryornot";
version = "0.4.4";
src = fetchPypi {
inherit pname version;
sha256 = "359501dfc9d40632edc9fac890e19542db1a287bbcfa58175b66658392018061";
};
prePatch = ''
# See https://github.com/audreyr/binaryornot/issues/40
substituteInPlace tests/test_check.py \
--replace "average_size=512" "average_size=128"
'';
propagatedBuildInputs = [ chardet ];
checkInputs = [ hypothesis ];
meta = with lib; {
homepage = https://github.com/audreyr/binaryornot;
description = "Ultra-lightweight pure Python package to check if a file is binary or text";
license = licenses.bsd3;
};
}

View File

@@ -1,6 +1,6 @@
{ lib
, buildPythonPackage
, fetchurl
, fetchFromGitHub
, pytest
, contextlib2
, cytoolz
@@ -27,9 +27,11 @@ buildPythonPackage rec {
pname = "blaze";
version = "0.11.3";
src = fetchurl {
url = "https://github.com/blaze/blaze/archive/${version}.tar.gz";
sha256 = "075gqc9d7g284z4nfwv5zbq99ln22w25l4lcndjg3v10kmsjadww";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "0w916k125058p40cf7i090f75pgv3cqdb8vwjzqhb9r482fa6717";
};
checkInputs = [ pytest ];

View File

@@ -0,0 +1,31 @@
{ lib, buildPythonPackage, fetchPypi, fetchpatch, pyusb }:
buildPythonPackage rec {
pname = "BlinkStick";
version = "1.1.8";
src = fetchPypi {
inherit pname version;
sha256 = "3edf4b83a3fa1a7bd953b452b76542d54285ff6f1145b6e19f9b5438120fa408";
};
patches = [
(fetchpatch {
url = https://github.com/arvydas/blinkstick-python/commit/a9227d0.patch;
sha256 = "1mcmxlnkbfxwp84qz32l5rlc7r9anh9yhnqaj1y8rny5s13jb01f";
})
(fetchpatch {
url = https://github.com/arvydas/blinkstick-python/pull/54.patch;
sha256 = "1gjq6xbai794bbdyrv82i96l1a7qkwvlhzd6sa937dy5ivv6s6hl";
})
];
propagatedBuildInputs = [ pyusb ];
meta = with lib; {
description = "Python package to control BlinkStick USB devices";
homepage = https://pypi.python.org/pypi/BlinkStick/;
license = licenses.bsd3;
maintainers = with maintainers; [ np ];
};
}

View File

@@ -9,9 +9,9 @@ let
};
setuptools_source = fetchPypi {
pname = "setuptools";
version = "38.4.0";
version = "38.4.1";
format = "wheel";
sha256 = "155c2ec9fdcc00c3973d966b416e1cf3a1e7ce75f4c09fb760b23f94b935926e";
sha256 = "22f8bcff5ce7fd1867785701769eaba42b79331d0abf890974a9288787dc015b";
};
# TODO: Shouldn't be necessary anymore for pip > 9.0.1!

View File

@@ -13,13 +13,13 @@
buildPythonPackage rec {
pname = "boto3";
version = "1.4.8";
version = "1.6.0";
src = fetchFromGitHub {
owner = "boto";
repo = "boto3";
rev = version;
sha256 = "11ysd7a9l5y98q7b7az56phsj2m7w90abf4jabwrknp2c43sq9bi";
sha256 = "14d60wc5kff2gjkrm0yfz0179s0qg3f1qqldv8hnf37ny6yvfwn3";
};
propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];

View File

@@ -12,11 +12,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "botocore";
version = "1.8.45";
version = "1.9.3";
src = fetchPypi {
inherit pname version;
sha256 = "8f91b648a216dc945783d1539c013fc08a9e65ecc4fc5aae017bdd5961fd3468";
sha256 = "d5b892ab86cd3e8d6cb570dd5275bf1c600cbbf9f07a40a22bcdd9023c0e844f";
};
propagatedBuildInputs = [

View File

@@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "zc.buildout";
version = "2.11.0";
version = "2.11.1";
name = "${pname}-nix-${version}";
src = fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${pname}-${version}.tar.gz";
sha256 = "092b0a147d5fb4e79ee0afde665570f85738e714463854f9e4f7f38d0b27ea82";
sha256 = "08017dcd8f4b60b48b7d830da835a9350c07e7f383fa56d45925ab5144400281";
};
patches = [ ./nix.patch ];

View File

@@ -1,19 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pytest
, freezegun
}:
buildPythonPackage rec {
pname = "cached-property";
version = "1.3.1";
version = "1.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "6562f0be134957547421dda11640e8cadfa7c23238fc4e0821ab69efdb1095f3";
# conftest.py is missing in PyPI tarball
# https://github.com/pydanny/cached-property/pull/87
src = fetchFromGitHub {
owner = "pydanny";
repo = pname;
rev = version;
sha256 = "0w7709grs4yqhfbnn7lva2fgyphvh43xcfqhi95lhh8sjad3xwkw";
};
checkInputs = [ freezegun ];
checkInputs = [ pytest freezegun ];
checkPhase = ''
py.test
'';
meta = {
description = "A decorator for caching properties in classes";
@@ -22,4 +31,4 @@ buildPythonPackage rec {
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ ericsagnes ];
};
}
}

View File

@@ -3,12 +3,12 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "cachetools";
version = "1.1.3";
version = "2.0.1";
disabled = isPyPy; # a test fails
src = fetchPypi {
inherit pname version;
sha256 = "0js7qx5pa8ibr8487lcf0x3a7w0xml0wa17snd6hjs0857kqhn20";
sha256 = "ede01f2d3cbd6ddc9e35e16c2b0ce011d8bb70ce0dbaf282f5b4df24b213bc5d";
};
meta = with stdenv.lib; {

View File

@@ -8,11 +8,11 @@
buildPythonPackage rec {
pname = "python-can";
version = "2.0.0";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1c6zfd29ck9ffdklfb5xgxvfl52xdaqd89isykkypm1ll97yk2fs";
sha256 = "4a5c01dd67feeda35f88e6c12ea14ac8cabd426b9be0cc5f9fd083fe90a9dbfc";
};
propagatedBuildInputs = [ pyserial ];

View File

@@ -2,12 +2,12 @@
if isPyPy then null else buildPythonPackage rec {
pname = "cffi";
version = "1.11.4";
version = "1.11.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "df9083a992b17a28cd4251a3f5c879e0198bb26c9e808c4647e0a18739f1d11d";
sha256 = "e90f17980e6ab0f3c2f3730e56d1fe9bcba1891eeea58966e89d352492cc74f4";
};
outputs = [ "out" "dev" ];

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "chainer";
version = "3.3.0";
version = "3.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "0669375e5b09d687781a37d6c025ee0a6015f575b4d2c70a2ad09c33b8228f86";
sha256 = "b7bcd8fc1a39b3602b4a78a0be6012721ba6c8792c4d14773496a4c6d038f886";
};
checkInputs = [

View File

@@ -2,15 +2,14 @@
buildPythonPackage rec {
pname = "codecov";
version = "2.0.9";
name = "${pname}-${version}";
version = "2.0.15";
src = fetchPypi {
inherit pname version;
sha256 = "037h4dcl8xshlq3rj8409p11rpgnyqrhlhfq8j34s94nm0n1h76v";
sha256 = "8ed8b7c6791010d359baed66f84f061bba5bd41174bf324c31311e8737602788";
};
buildInputs = [ unittest2 ]; # Tests only
checkInputs = [ unittest2 ]; # Tests only
propagatedBuildInputs = [ requests coverage ];
@@ -18,6 +17,9 @@ buildPythonPackage rec {
sed -i 's/, "argparse"//' setup.py
'';
# No tests in archive
doCheck = false;
meta = {
description = "Python report uploader for Codecov";
homepage = https://codecov.io/;

View File

@@ -1,11 +1,10 @@
{stdenv, lib, buildPythonPackage, fetchPypi, coverage, bash, which, writeText}:
{stdenv, lib, buildPythonPackage, fetchPypi, bash, which, writeText}:
buildPythonPackage rec {
name = "${pname}-${version}";
version = "0.7";
pname = "cram";
buildInputs = [ coverage which ];
checkInputs = [ which ];
src = fetchPypi {
inherit pname version;
@@ -13,20 +12,13 @@ buildPythonPackage rec {
};
postPatch = ''
patchShebangs scripts/cram
substituteInPlace tests/test.t \
--replace "/bin/bash" "${bash}/bin/bash"
'';
# This testing is copied from Makefile. Simply using `make test` doesn't work
# because it uses the unpatched `scripts/cram` executable which has a bad
# shebang. Also, for some reason, coverage fails on one file so let's just
# ignore that one.
checkPhase = ''
# scripts/cram tests
#COVERAGE=${coverage}/bin/coverage $out/bin/cram tests
#${coverage}/bin/coverage report --fail-under=100
COVERAGE=coverage $out/bin/cram tests
coverage report --fail-under=100 --omit="*/_encoding.py,*/__main__.py"
scripts/cram tests
'';
meta = {

View File

@@ -1,28 +1,38 @@
{ stdenv, fetchPypi, buildPythonPackage,
dateutil, dbf, xlrd, sqlalchemy, openpyxl,
agate-excel, agate-dbf, agate-sql, isPy3k }:
{ lib, fetchPypi, buildPythonPackage, isPy3k
, agate, agate-excel, agate-dbf, agate-sql, six
, argparse, ordereddict, simplejson
, glibcLocales, nose, mock, unittest2
}:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "csvkit";
version = "1.0.2";
pname = "csvkit";
version = "1.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "05vfsba9nwh4islszgs18rq8sjkpzqni0cdwvvkw7pi0r63pz2as";
};
src = fetchPypi {
inherit pname version;
sha256 = "05vfsba9nwh4islszgs18rq8sjkpzqni0cdwvvkw7pi0r63pz2as";
};
propagatedBuildInputs = [ dateutil dbf xlrd sqlalchemy openpyxl
agate-excel agate-dbf agate-sql ];
propagatedBuildInputs = [
agate agate-excel agate-dbf agate-sql six
] ++ lib.optionals (!isPy3k) [
argparse ordereddict simplejson
];
doCheck = !isPy3k;
# (only) python 3 we had 9 failures and 57 errors out of a much larger
# number of tests.
checkInputs = [
glibcLocales nose
] ++ lib.optionals (!isPy3k) [
mock unittest2
];
meta = with stdenv.lib; {
description = "A library of utilities for working with CSV, the king of tabular file formats";
maintainers = with maintainers; [ vrthra ];
license = with licenses; [ mit ];
homepage = https://github.com/wireservice/csvkit;
};
checkPhase = ''
LC_ALL="en_US.UTF-8" nosetests -e test_csvsql
'';
meta = with lib; {
description = "A library of utilities for working with CSV, the king of tabular file formats";
maintainers = with maintainers; [ vrthra ];
license = with licenses; [ mit ];
homepage = https://github.com/wireservice/csvkit;
};
}

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "cupy";
version = "2.3.0";
version = "2.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "7426f6332cb01513d2a6a687792dfa17c678ff64dd1b19b04559ddd5672c833f";
sha256 = "96ac44dface1a73673e9c0549fc897f8fa31a7648ff9963dff799ddabd67fde2";
};
checkInputs = [

View File

@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, pytest, wcwidth }:
{ stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, wcwidth, typing }:
buildPythonPackage rec {
pname = "curtsies";
@@ -8,12 +8,12 @@ buildPythonPackage rec {
sha256 = "89c802ec051d01dec6fc983e9856a3706e4ea8265d2940b1f6d504a9e26ed3a9";
};
propagatedBuildInputs = [ blessings wcwidth pyte ];
propagatedBuildInputs = [ blessings wcwidth typing ];
checkInputs = [ nose mock pytest ];
checkInputs = [ mock pyte nose ];
checkPhase = ''
py.test
nosetests tests
'';
meta = with stdenv.lib; {

View File

@@ -1,19 +1,31 @@
{ stdenv, buildPythonPackage, fetchPypi,
asgiref, autobahn, twisted, hypothesis
{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub
, asgiref, autobahn, twisted, pytestrunner
, hypothesis, pytest, pytest-asyncio
}:
buildPythonPackage rec {
pname = "daphne";
name = "${pname}-${version}";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "13jv8jn8nf522smwpqdy4lq6cpd06fcgwvgl67i622rid51fj5gb";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "django";
repo = pname;
rev = version;
sha256 = "1lbpn0l796ar77amqy8dap30zxmsn6as8y2lbmp4lk8m9awscwi8";
};
buildInputs = [ hypothesis ];
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ asgiref autobahn twisted ];
checkInputs = [ hypothesis pytest pytest-asyncio ];
checkPhase = ''
# Other tests fail, seems to be due to filesystem access
py.test -k "test_cli or test_utils"
'';
meta = with stdenv.lib; {
description = "Django ASGI (HTTP/WebSocket) server";
license = licenses.bsd3;

View File

@@ -12,12 +12,12 @@
buildPythonPackage rec {
pname = "dask";
version = "0.17.0";
version = "0.17.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "4d2b0754d16ddc3f87026c1fc4fa3b589d7604a41d3f6510268f172abc1d0a5e";
sha256 = "0a6aec8b3489419c97486afd46e30b63caafc642205726a884b7fe488906d359";
};
checkInputs = [ pytest ];

View File

@@ -1,21 +1,24 @@
{ stdenv, fetchPypi, buildPythonPackage, aenum, isPy3k }:
{ stdenv, fetchPypi, buildPythonPackage, aenum, isPy3k, pythonOlder, enum34, python }:
buildPythonPackage rec {
pname = "dbf";
version = "0.96.8";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1z8n7s4cka6x9ybh4qpfhj51v2qrk38h2f06npizzhm0hmn6r3v1";
};
propagatedBuildInputs = [ aenum ];
propagatedBuildInputs = [ aenum ] ++ stdenv.lib.optional (pythonOlder "3.4") [ enum34 ];
doCheck = !isPy3k;
# tests are not yet ported.
# https://groups.google.com/forum/#!topic/python-dbase/96rx2xmCG4w
checkPhase = ''
${python.interpreter} dbf/test.py
'';
meta = with stdenv.lib; {
description = "Pure python package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files";
homepage = "https://pypi.python.org/pypi/dbf";

View File

@@ -0,0 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "deluge-client";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "048zfidv08sr4hivdd3xxf1pywhqbnszj5qcn51h2f4y1588fhpf";
};
# it will try to connect to a running instance
doCheck = false;
meta = with stdenv.lib; {
description = "Lightweight pure-python rpc client for deluge";
homepage = https://github.com/JohnDoee/deluge-client;
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}

View File

@@ -0,0 +1,20 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "dj-database-url";
version = "0.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "4aeaeb1f573c74835b0686a2b46b85990571159ffc21aa57ecd4d1e1cb334163";
};
# Tests access a DB via network
doCheck = false;
meta = with lib; {
description = "Use Database URLs in your Django Application";
homepage = https://github.com/kennethreitz/dj-database-url;
license = licenses.bsd2;
};
}

View File

@@ -1,18 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi, django }:
{ stdenv, buildPythonPackage, fetchFromGitHub, python, django, dj-database-url }:
buildPythonPackage rec {
pname = "django-polymorphic";
version = "2.0.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "e1821d7b5874509a158a0f22bebf544330e0944c481c5a3e6da6cac8887e4e88";
# PyPI tarball is missing some test files
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "18p84kdwpfp423vb2n38h840mj3bq0j57jx3cry7c8dznpi0vfi2";
};
checkInputs = [ django ];
checkInputs = [ dj-database-url ];
propagatedBuildInputs = [ django ];
checkPhase = ''
${python.interpreter} runtests.py
'';
meta = {
homepage = https://github.com/django-polymorphic/django-polymorphic;
description = "Improved Django model inheritance with automatic downcasting";

View File

@@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "Django";
name = "${pname}-${version}";
version = "2.0.1";
version = "2.0.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0by1gswkrzxn594fa26llkzsc410999fq8s0b5d1598jwi5q0syr";
sha256 = "dc3b61d054f1bced64628c62025d480f655303aea9f408e5996c339a543b45f0";
};
patches = stdenv.lib.optionals withGdal [

View File

@@ -1,12 +1,13 @@
{ stdenv, fetchPypi, buildPythonPackage, hidapi
{ stdenv, fetchPypi, buildPythonPackage, isPy3k, hidapi
, pycrypto, pillow, protobuf, future, ecpy
}:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "ECPy";
version = "0.8.3";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "ef3d95419d53368f52fb7d4b883b8df0dfc2dd19a76243422d24981c3e5f27bd";

View File

@@ -1,6 +1,6 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder,
# Build inputs
dateutil, six, ipaddress ? null,
dateutil, six, text-unidecode, ipaddress ? null,
# Test inputs
email_validator, nose, mock, ukpostcodeparser }:
@@ -8,12 +8,11 @@ assert pythonOlder "3.3" -> ipaddress != null;
buildPythonPackage rec {
pname = "Faker";
version = "0.8.8";
name = "${pname}-${version}";
version = "0.8.11";
src = fetchPypi {
inherit pname version;
sha256 = "e928cf853ef69d7471421f2a3716a1239e43de0fa9855f4016ee0c9f1057328a";
sha256 = "126kdy6lj10rwgchzz0lzjabx0zcyskamhn0qib67k69fcksjmq8";
};
checkInputs = [
@@ -26,6 +25,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
dateutil
six
text-unidecode
] ++ lib.optional (pythonOlder "3.3") ipaddress;
meta = with lib; {

View File

@@ -1,17 +1,20 @@
{ lib, buildPythonPackage, fetchurl, flask, pytest }:
{ lib, buildPythonPackage, fetchPypi, flask, pytest }:
buildPythonPackage rec {
name = "Flask-Script-${version}";
pname = "Flask-Script";
version = "2.0.6";
src = fetchurl {
url = "mirror://pypi/F/Flask-Script/${name}.tar.gz";
src = fetchPypi {
inherit pname version;
sha256 = "0zqh2yq8zk7m9b4xw1ryqmrljkdigfb3hk5155a3b5hkfnn6xxyf";
};
propagatedBuildInputs = [ flask ];
checkInputs = [ pytest ];
# No tests in archive
doCheck = false;
meta = with lib; {
homepage = http://github.com/smurfix/flask-script;
description = "Scripting support for Flask";

View File

@@ -3,16 +3,16 @@
, numpy
, pytest
, pytestrunner
, glibcLocales
}:
buildPythonPackage rec {
pname = "fonttools";
version = "3.22.0";
name = "${pname}-${version}";
version = "3.24.0";
src = fetchPypi {
inherit pname version;
sha256 = "01640dfbc0ba752181b21fe74240b8a7bbf7af75581737245836ada5565bd549";
sha256 = "d09126f443bc8797d1b7e76274e65f4c169c04722745953ecf536451b1d9a15f";
extension = "zip";
};
@@ -23,8 +23,13 @@ buildPythonPackage rec {
checkInputs = [
pytest
pytestrunner
glibcLocales
];
preCheck = ''
export LC_ALL="en_US.UTF-8"
'';
meta = {
homepage = https://github.com/fonttools/fonttools;
description = "A library to manipulate font files from Python";

View File

@@ -0,0 +1,27 @@
{ lib, buildPythonPackage, fetchPypi, pytest }:
buildPythonPackage rec {
version = "3.4";
pname = "ftputil";
src = fetchPypi {
inherit pname version;
sha256 = "374b01e174079e91babe2a462fbd6f6c00dbfbfa299dec04239ca4229fbf8762";
};
checkInputs = [ pytest ];
checkPhase = ''
touch Makefile
# Disable tests that require network access or access /home
py.test test \
-k "not test_public_servers and not test_real_ftp \
and not test_set_parser and not test_repr"
'';
meta = with lib; {
description = "High-level FTP client library (virtual file system and more)";
homepage = http://ftputil.sschwarzer.net/;
license = licenses.bsd2; # "Modified BSD license, says pypi"
};
}

View File

@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "google-cloud-core";
version = "0.28.0";
version = "0.28.1";
src = fetchPypi {
inherit pname version;
sha256 = "1h8bx99ksla48zkb7bhkqy66b8prg49dp15alh851vzi9ii2zii7";
sha256 = "89e8140a288acec20c5e56159461d3afa4073570c9758c05d4e6cb7f2f8cc440";
};
propagatedBuildInputs = [ google_api_core grpcio ];

View File

@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "google-cloud-speech";
version = "0.32.0";
version = "0.32.1";
src = fetchPypi {
inherit pname version;
sha256 = "2513725e693c3a2fdf22cb3065f3fcb39de2ab962a0cbc5de11a3889834189e1";
sha256 = "4f9a8ab3eb6630d0c0ca6ac15230dceba7d55d6707d162a84f255139ff780ee9";
};
propagatedBuildInputs = [ setuptools google_api_core google_gax google_cloud_core ];

View File

@@ -3,12 +3,12 @@
buildPythonPackage rec {
pname = "GPy";
version = "1.8.5";
version = "1.9.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1562e34629192f209273f454e41614a127c6ef04144cd0eb5992d484721d55d3";
sha256 = "372e43d41df5c90e0958d3073070994b351a7409c2e5fbd349cffe13bc24c10a";
};
# running tests produces "ImportError: cannot import name 'linalg_cython'"

View File

@@ -0,0 +1,21 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, colorama, coverage, termstyle, unidecode, mock, backports_shutil_get_terminal_size }:
buildPythonPackage rec {
pname = "green";
version = "2.12.1";
src = fetchPypi {
inherit pname version;
sha256 = "4c0c163bd2ce2da1f201eb69fd92fc24aaeab884f9e5c5a8c23d507a53336fa8";
};
propagatedBuildInputs = [
colorama coverage termstyle unidecode
] ++ lib.optionals (!isPy3k) [ mock backports_shutil_get_terminal_size ];
meta = with lib; {
description = "Python test runner";
homepage = https://github.com/CleanCut/green;
license = licenses.mit;
};
}

View File

@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "guessit";
version = "2.0.4";
version = "2.1.4";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1cfcgb0px6i9jl8nwkx8j06j4y6p5975a9pfmd8lcacwr8gy4wjg";
sha256 = "90e6f9fb49246ad27f34f8b9984357e22562ccc3059241cbc08b4fac1d401c56";
};
# Tests require more packages.

View File

@@ -0,0 +1,28 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
, ffmpeg, async-timeout }:
buildPythonPackage rec {
pname = "ha-ffmpeg";
version = "1.9";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0644j5fqw8p6li6nrnm1rw7nhvsixq1c7gik3f1yx50776yg05i8";
};
buildInputs = [ ffmpeg ];
propagatedBuildInputs = [ async-timeout ];
# only manual tests
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/pvizeli/ha-ffmpeg;
description = "Library for home-assistant to handle ffmpeg";
license = licenses.bsd3;
maintainers = with maintainers; [ peterhoeg ];
};
}

View File

@@ -1,15 +1,16 @@
{ stdenv, buildPythonPackage, fetchurl, pytest }:
{ stdenv, buildPythonPackage, fetchPypi, idna, pytest }:
buildPythonPackage rec {
pname = "hyperlink";
version = "17.3.1";
name = pname + "-" + version;
version = "18.0.0";
src = fetchurl {
url = "mirror://pypi/h/hyperlink/${name}.tar.gz";
sha256 = "bc4ffdbde9bdad204d507bd8f554f16bba82dd356f6130cb16f41422909c33bc";
src = fetchPypi {
inherit pname version;
sha256 = "f01b4ff744f14bc5d0a22a6b9f1525ab7d6312cb0ff967f59414bbac52f0a306";
};
propagatedBuildInputs = [ idna ];
checkInputs = [ pytest ];
checkPhase = ''

View File

@@ -13,12 +13,12 @@
buildPythonPackage rec {
pname = "ipykernel";
version = "4.8.1";
version = "4.8.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "fe2837622a4121cbe42b354db1e2ab46c91e807ffcb92f4c2cfd323a75f8737f";
sha256 = "c091449dd0fad7710ddd9c4a06e8b9e15277da306590bc07a3a1afa6b4453c8f";
};
buildInputs = [ nose ] ++ lib.optional isPy27 mock;

View File

@@ -2,12 +2,12 @@
buildPythonPackage rec {
name = "${pname}-${version}";
version = "1.3.5";
version = "1.4.1";
pname = "kafka-python";
src = fetchPypi {
inherit pname version;
sha256 = "19m9fdckxqngrgh0www7g8rgi7z0kq13wkhcqy1r8aa4sxad0f5j";
sha256 = "596e9b4e302a0dc04d35be159cf23d31c4cba73a218e16fc8cd1be0ad57f8c22";
};
checkInputs = [ pytest six mock ];

View File

@@ -0,0 +1,48 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, writeText, configparser, six, pytest, glibcLocales }:
buildPythonPackage rec {
pname = "konfig";
version = "1.1";
# konfig unconditionaly depend on configparser, even if it is part of
# the standard library in python 3.2 or above.
disabled = isPy3k;
# PyPI tarball is missing utf8.ini, required for tests
src = fetchFromGitHub {
owner = "mozilla-services";
repo = pname;
rev = version;
sha256 = "1h780fbrv275dcik4cs3rincza805z6q726b48r4a0qmh5d8160c";
};
propagatedBuildInputs = [ configparser six ];
patches = [ (writeText "konfig.patch" ''
diff --git a/setup.py b/setup.py
index 96fd858..bb4db06 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ setup(name='konfig',
author_email="tarek@mozilla.com",
include_package_data=True,
install_requires = [
- 'configparser', 'argparse', 'six'
+ 'configparser', 'six'
],
zip_safe=False,
classifiers=classifiers,
'') ];
checkInputs = [ pytest glibcLocales ];
checkPhase = ''
LC_ALL=en_US.utf8 pytest -v konfig/tests
'';
meta = with lib; {
description = "Yet Another Config Parser";
homepage = "https://github.com/mozilla-services/konfig";
license = licenses.mpl20;
};
}

View File

@@ -0,0 +1,25 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k
, pbr, ldap, fixtures, testresources, testtools }:
buildPythonPackage rec {
name = "ldappool-${version}";
version = "2.2.0";
src = fetchPypi {
pname = "ldappool";
inherit version;
sha256 = "1akmzf51cjfvmd0nvvm562z1w9vq45zsx6fa72kraqgsgxhnrhqz";
};
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [ ldap ];
checkInputs = [ fixtures testresources testtools ];
meta = with lib; {
description = "A simple connector pool for python-ldap";
homepage = https://git.openstack.org/cgit/openstack/ldappool;
license = licenses.mpl20;
};
}

View File

@@ -10,13 +10,13 @@
buildPythonPackage rec {
pname = "llvmlite";
version = "0.21.0";
version = "0.22.0";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
sha256 = "3a5dd0695fdfb9fd47464cd71791b84935bf9642e11f4811d57aa1f2da8cdaa8";
sha256 = "a0a875f3d502f41f4a24444aa98fbf076a6bf36e2a0b3b4481b22e1c4a3acdc2";
};
propagatedBuildInputs = [ llvm ] ++ stdenv.lib.optional (pythonOlder "3.4") enum34;

View File

@@ -8,12 +8,12 @@
buildPythonPackage rec {
pname = "mozdevice";
version = "0.50";
version = "0.52";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0cfxzhfxdphlzj80vkd3h7m0mg5w7zhb8h6f5lmybliqdiv9vz20";
sha256 = "5b6fcbc7179c0f09bd99f7f7c42b614bce5f39543fb18b190e408488f987d6b5";
};
propagatedBuildInputs = [ moznetwork mozprocess ];

View File

@@ -4,22 +4,25 @@
, fetchPypi
, isPy3k
, blessings
, mozterm
, six
, mozfile
}:
buildPythonPackage rec {
pname = "mozlog";
version = "3.4";
name = "${pname}-${version}";
version = "3.7";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1m4d9i1kzcmkhipfd5czv05f2s84j1byx3cv4y2irjmwq5v6cyiq";
sha256 = "414141131c4f5e7242e69a939d2b74f4ed8dbac12bef93eee4e7125cd1a131e9";
};
propagatedBuildInputs = [ blessings mozfile ];
propagatedBuildInputs = [ blessings mozterm six ];
checkInputs = [ mozfile ];
meta = {
description = "Mozilla logging library";

View File

@@ -7,12 +7,12 @@
buildPythonPackage rec {
pname = "mozprocess";
version = "0.25";
version = "0.26";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0lfflwjkwvc8bqvsgdib3b78w2pms8nharh3sc3zgsrmqb1mbzks";
sha256 = "9f471c45bee9ff14e936c6ee216a6cc4941223659c01fa626bce628001d8485c";
};
propagatedBuildInputs = [ mozinfo ];

View File

@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "mozprofile";
version = "0.28";
version = "0.29";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "15xsdhrpbg7hlr6nvb3k3ci33h786hrv12az8j2k7aa9gzjcf8nh";
sha256 = "92af4b9f527a18997dccb60e846e1844b2428668dadf3ccb1a8cd30c706b25c1";
};
propagatedBuildInputs = [ mozlog mozfile mozhttpd ];

View File

@@ -13,12 +13,12 @@
buildPythonPackage rec {
pname = "mozrunner";
version = "6.13";
version = "6.14";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1d5k3a0w1iyyk6l28l65j47grq87zd207h369x4vahq02nrx2g6l";
sha256 = "a401ea5141cdd15d8f047f19a30ccbeabeb0aea079674b684121acddc5dcf810";
};
propagatedBuildInputs = [ mozdevice mozfile mozinfo mozlog mozprocess

View File

@@ -8,12 +8,12 @@
buildPythonPackage rec {
pname = "mozversion";
version = "1.4";
version = "1.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "15ipddn6bpqxl590cy37fj52vgpa4faw2dax1mwvdxj7b18s3pwh";
sha256 = "e9b11e4a46bf7a4a11469ea4589c75f3ba50b34b7801e7edf1a09147af8bf70f";
};
propagatedBuildInputs = [ mozlog mozdevice ];

View File

@@ -0,0 +1,18 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "miniupnpc";
version = "2.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "0ca94zz7sr2x57j218aypxqcwkr23n8js30f3yrvvqbg929nr93y";
};
meta = with stdenv.lib; {
description = "miniUPnP client";
homepage = http://miniupnp.free.fr/;
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}

View File

@@ -0,0 +1,16 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "mozterm";
version = "0.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "4ebf8bd772d97c0f557184173f0f96cfca0abfc07e1ae975fbcfa76be50b5561";
};
meta = with lib; {
description = "Terminal abstractions built around the blessings module";
license = licenses.mpl20;
};
}

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "msgpack";
version = "0.5.4";
version = "0.5.6";
src = fetchPypi {
inherit pname version;
sha256 = "13ckbs2qc4dww7fddnm9cw116j4spgxqab49ijmj6jr178ypwl80";
sha256 = "0ee8c8c85aa651be3aa0cd005b5931769eaa658c948ce79428766f1bd46ae2c3";
};
checkPhase = ''

View File

@@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "neovim";
version = "0.2.1";
version = "0.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "16vzxmp7f6dl20n30j5cwwvrjj5h3c2ch8ldbss31anf36nirsdp";
sha256 = "989d720dc7636aa4260aa7774fa79aa524f51515b262eb8d7e9ba4336f758a99";
};
checkInputs = [ nose ];

View File

@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, requests, zeroconf, netifaces, pytest }:
{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, fetchpatch, requests, zeroconf, netifaces, pytest }:
buildPythonPackage rec {
pname = "netdisco";
@@ -14,6 +14,12 @@ buildPythonPackage rec {
sha256 = "170s9py8rw07cfgwvv7mf69g8jjg32m2rgw8x3kbvjqlmrdijxmm";
};
# Allow newer zeroconf versions
patches = fetchpatch {
url = "${meta.homepage}/commit/78f83046a2a0d77527274c8be9c3fd75737c19d0.patch";
sha256 = "098zkwqg9181vavw97yhi9rsdsf023gnapg4gkr1n0awz3f3l9nm";
};
propagatedBuildInputs = [ requests zeroconf netifaces ];
checkInputs = [ pytest ];
@@ -24,7 +30,7 @@ buildPythonPackage rec {
meta = with stdenv.lib; {
description = "Python library to scan local network for services and devices";
homepage = https://github.com/home-assistant/netdisco/;
homepage = https://github.com/home-assistant/netdisco;
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ dotlambda ];

View File

@@ -3,32 +3,24 @@
, fetchPypi
, nose
, decorator
, isPy36
, isPyPy
}:
buildPythonPackage rec {
pname = "networkx";
version = "1.11";
# Currently broken on PyPy.
# https://github.com/networkx/networkx/pull/1361
disabled = isPyPy;
version = "2.1";
src = fetchPypi {
inherit pname version;
sha256 = "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd";
extension = "zip";
sha256 = "64272ca418972b70a196cb15d9c85a5a6041f09a2f32e0d30c0255f25d458bb1";
};
checkInputs = [ nose ];
propagatedBuildInputs = [ decorator ];
# 17 failures with 3.6 https://github.com/networkx/networkx/issues/2396#issuecomment-304437299
doCheck = !(isPy36);
meta = {
homepage = "https://networkx.github.io/";
description = "Library for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks";
license = lib.licenses.bsd3;
};
}
}

View File

@@ -29,11 +29,11 @@ assert !isPy3k -> configparser != null;
buildPythonPackage rec {
pname = "nipype";
version = "1.0.0";
version = "1.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "4c14c6cae1f530f89d76fa8136d52488b1daf3a02179da65121b76eaf4a6f0ea";
sha256 = "47f62fda3d6b9a37aa407a6b78c80e91240aa71e61191ed00da68b02839fe258";
};
doCheck = false; # fails with TypeError: None is not callable

View File

@@ -14,12 +14,12 @@
}:
buildPythonPackage rec {
version = "0.36.2";
version = "0.37.0";
pname = "numba";
src = fetchPypi {
inherit pname version;
sha256 = "d61597808ce511e81b64e32da664f52beb7d947bf834dde8b8b60b29d205e5c2";
sha256 = "c62121b2d384d8b4d244ef26c1cf8bb5cb819278a80b893bf41918ad6d391258";
};
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";

View File

@@ -2,13 +2,13 @@
buildPythonPackage rec {
pname = "numpy";
version = "1.14.0";
version = "1.14.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "3de643935b212307b420248018323a44ec51987a336d1d747c1322afc3c099fb";
sha256 = "fa0944650d5d3fb95869eaacd8eedbd2d83610c85e271bd9d3495ffa9bc4dc9c";
};
disabled = isPyPy;

View File

@@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "paramz";
version = "0.8.5";
version = "0.9.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "297e59b48e57e78e15f547b1af8b21ddfd19a6312d70b9dc07c7262711adfed9";
sha256 = "8a5a2fe5cdb033eb869c49e81fde2a9d0055fadb53a8af1665a7f48f320179cf";
};
propagatedBuildInputs = [ numpy scipy six decorator ];

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "pendulum";
version = "1.4.1";
version = "1.4.2";
src = fetchPypi {
inherit pname version;
sha256 = "3f16fb759e6126dd89d49886f8100caa72e5ab36563bc148b4f7eddfa0099c0f";
sha256 = "39a255776528afe11ea0d57814f9bf3729c1e0b99063af2e5c6cfd750c3e1f7f";
};
propagatedBuildInputs = [ dateutil pytzdata tzlocal ];

View File

@@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "phonenumbers";
version = "8.8.9";
version = "8.9.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "d819299c3aa8f85f248295ab8559e202af429b4017301b122a0b4c387aed10d2";
sha256 = "2cb4822ba895200b06f46a788e852d6ae8200fdc97e1d7c86b0ee10c99d4ff3a";
};
meta = {

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "plotly";
version = "2.4.0";
version = "2.4.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "8e7ee039231fec52b0b38d45e7470f70b117f6527b08cc922d74992f4d082858";
sha256 = "f588991dce15437debd825eca935c8cfbabf438cdc0dcd2ce7a88f429d982f69";
};
propagatedBuildInputs = [

View File

@@ -3,7 +3,6 @@
buildPythonPackage rec {
pname = "pomegranate";
version = "0.8.1";
name = "${pname}-${version}";
src = fetchFromGitHub {
repo = pname;
@@ -21,5 +20,9 @@ buildPythonPackage rec {
homepage = https://github.com/jmschrei/pomegranate;
license = licenses.mit;
maintainers = with maintainers; [ rybern ];
# "pomegranate does not yet work with networkx 2.0"
# see https://github.com/jmschrei/pomegranate/issues/209
broken = true;
};
}

View File

@@ -7,6 +7,8 @@
, six
, pydotplus
, rdflib
, pydot
, glibcLocales
}:
buildPythonPackage rec {
@@ -18,6 +20,10 @@ buildPythonPackage rec {
sha256 = "640dc158d931403bc6c1a0ad80702caae71f810bac21f90ec605865c8444b7bb";
};
prePatch = ''
substituteInPlace setup.py --replace "six==1.10.0" "six>=1.10.0"
'';
propagatedBuildInputs = [
lxml
networkx
@@ -26,7 +32,15 @@ buildPythonPackage rec {
pydotplus
rdflib
];
doCheck = false; # takes ~60 mins
checkInputs = [
pydot
glibcLocales
];
preCheck = ''
export LC_ALL="en_US.utf-8"
'';
meta = with stdenv.lib; {
description = "A Python library for W3C Provenance Data Model (PROV)";

View File

@@ -1,7 +1,8 @@
{ lib, fetchFromGitHub, buildPythonPackage, isPyPy, isPy3k, libbfd, libopcodes }:
buildPythonPackage rec {
name = "pybfd-0.1.1.2017-12-31";
pname = "pybfd";
version = "-0.1.1.2017-12-31";
disabled = isPyPy || isPy3k;

View File

@@ -0,0 +1,22 @@
{ stdenv, lib, buildPythonPackage, fetchurl, cups, libiconv }:
buildPythonPackage rec {
pname = "pycups";
version = "1.9.73";
src = fetchurl {
url = "http://cyberelk.net/tim/data/pycups/pycups-${version}.tar.bz2";
sha256 = "c381be011889ca6f728598578c89c8ac9f7ab1e95b614474df9f2fa831ae5335";
};
buildInputs = [ cups ] ++ lib.optional stdenv.isDarwin libiconv;
# Wants to connect to CUPS
doCheck = false;
meta = with lib; {
description = "Python bindings for libcups";
homepage = http://cyberelk.net/tim/software/pycups/;
license = with licenses; [ gpl2Plus ];
};
}

View File

@@ -3,10 +3,10 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pydub";
version = "0.20.0";
version = "0.21.0";
src = fetchPypi {
inherit pname version;
sha256 = "0hqsvvph6ks4kxj0m2q1xvl5bllqmpk78rlqpqhh79schl344xkv";
sha256 = "27acc5977b0f5220682175d44fda737bbf818143b0832c0c3863b5dde38e197a";
};
patches = [

View File

@@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "pymongo";
version = "3.6.0";
version = "3.6.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "c6de26d1e171cdc449745b82f1addbc873d105b8e7335097da991c0fc664a4a8";
sha256 = "f7ebcb846962ee40374db2d9014a89bea9c983ae63c1877957c3a0a756974796";
};
doCheck = false;

View File

@@ -15,7 +15,7 @@
buildPythonPackage rec {
pname = "pyopencl";
version = "2018.1";
version = "2018.1.1";
checkInputs = [ pytest ];
buildInputs = [ opencl-headers ocl-icd ];
@@ -24,7 +24,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "b692966bbaaa65ef8949ee25660d6b0cc7cbadc7f4a35eb9c5139dfa4dde6d4a";
sha256 = "29683b47ec729c77a1be4d6fae2bd3718ca4cfcbe14655261a3a14d5bf55530a";
};
# py.test is not needed during runtime, so remove it from `install_requires`

View File

@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, setuptools_scm }:
{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy3k, pytest, mock, setuptools_scm }:
buildPythonPackage rec {
pname = "pytest-mock";

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "pytest-xdist";
version = "1.22.0";
version = "1.22.2";
src = fetchPypi {
inherit pname version;
sha256 = "65228a859191f2c74ee68c127317eefe35eedd3d43fc1431f19240663b0cafcd";
sha256 = "e8f5744acc270b3e7d915bdb4d5f471670f049b6fbd163d4cbd52203b075d30f";
};
nativeBuildInputs = [ setuptools_scm ];

View File

@@ -2,7 +2,7 @@
, setuptools_scm, setuptools, six, pluggy, funcsigs, isPy3k
}:
buildPythonPackage rec {
version = "3.4.0";
version = "3.4.1";
pname = "pytest";
preCheck = ''
@@ -12,7 +12,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "6074ea3b9c999bd6d0df5fa9d12dd95ccd23550df2a582f5f5b848331d2e82ca";
sha256 = "9ddcb879c8cc859d2540204b5399011f842e5e8823674bf429f70ada281b3cc6";
};
checkInputs = [ hypothesis ];

View File

@@ -0,0 +1,23 @@
{ lib, buildPythonPackage, fetchPypi, mock, testscenarios, docutils, lockfile }:
buildPythonPackage rec {
pname = "python-daemon";
version = "2.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "261c859be5c12ae7d4286dc6951e87e9e1a70a882a8b41fd926efc1ec4214f73";
};
# A test fail within chroot builds.
doCheck = false;
buildInputs = [ mock testscenarios ];
propagatedBuildInputs = [ docutils lockfile ];
meta = with lib; {
description = "Library to implement a well-behaved Unix daemon process";
homepage = https://alioth.debian.org/projects/python-daemon/;
license = [ licenses.gpl3Plus licenses.asl20 ];
};
}

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "python-oauth2";
version = "1.0.1";
version = "1.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "0a1d0qnlgm07wq9r9bbm5jqkqry73w34m87p0141bk76lg7bb0sm";
sha256 = "b24da812837c19183df1924e80a22ba0a1869582dea8b04a9ecd807b04dbc525";
};
# attempts to run mysql
doCheck = false;

View File

@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "pytools";
version = "2017.6";
version = "2018.1";
src = fetchPypi {
inherit pname version;
sha256 = "80f1bba4469d473c1b3969bc8e188c03bcc94d35807a889ceebbfc78e3208115";
sha256 = "0063b87285cb1172e3602a996bfd7342bf407361cf67b562cb6d806f70422e71";
};
checkInputs = [ pytest ];

View File

@@ -0,0 +1,24 @@
{ lib, buildPythonPackage, fetchPypi, nose, six, colorama, termstyle }:
buildPythonPackage rec {
pname = "rednose";
version = "1.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "6da77917788be277b70259edc0bb92fc6f28fe268b765b4ea88206cc3543a3e1";
};
prePatch = ''
substituteInPlace setup.py --replace "six==1.10.0" "six>=1.10.0"
'';
checkInputs = [ six ];
propagatedBuildInputs = [ nose colorama termstyle ];
meta = with lib; {
description = "A python nose plugin adding color to console results";
homepage = https://github.com/JBKahn/rednose;
license = licenses.mit;
};
}

View File

@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "regex";
version = "2018.02.08";
version = "2018.02.21";
src = fetchPypi {
inherit pname version;
sha256 = "2353c0e983c4029caf32016f1dddef623c3117ac282a818468c6d2f5d541698d";
sha256 = "b44624a38d07d3c954c84ad302c29f7930f4bf01443beef5589e9157b14e2a29";
};
postCheck = ''

View File

@@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "restructuredtext_lint";
version = "1.1.2";
version = "1.1.3";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "9201d354e22c27be61cf6d8212da6e10c875eec7ec8d1bdb1067b2a5ba931637";
sha256 = "c48ca9a84c312b262809f041fe47dcfaedc9ee4879b3e1f9532f745c182b4037";
};
checkInputs = [ nose flake8 pyyaml testtools ];

View File

@@ -8,13 +8,13 @@
# Should use buildPythonPackage here somehow
stdenv.mkDerivation rec {
pname = "setuptools";
version = "38.4.0";
version = "38.4.1";
name = "${python.libPrefix}-${pname}-${version}";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "6501fc32f505ec5b3ed36ec65ba48f1b975f52cf2ea101c7b73a08583fd12f75";
sha256 = "3b5f74bd33b046a121f052632f248b580f5e83848bb4cebda9e38741a445a969";
};
nativeBuildInputs = [ unzip wrapPython ];

View File

@@ -27,10 +27,10 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Sphinx";
version = "1.7.0";
version = "1.7.1";
src = fetchPypi {
inherit pname version;
sha256 = "278b7923f3f4ed2a1d1359f0ae94d89ac90ddd4189e8362f4b4d3baa2afe6b4a";
sha256 = "da987de5fcca21a4acc7f67a86a363039e67ac3e8827161e61b91deb131c0ee8";
};
LC_ALL = "en_US.UTF-8";

View File

@@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "SQLAlchemy";
name = "${pname}-${version}";
version = "1.2.3";
version = "1.2.4";
src = fetchPypi {
inherit pname version;
sha256 = "9e9ec143e2e246f385cfb2de8daa89d2fa466279addcb7be9e102988fdf33d24";
sha256 = "6997507af46b10630e13b605ac278b78885fd683d038896dbee0e7ec41d809d2";
};
checkInputs = [

View File

@@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "sqlmap";
version = "1.2.2";
version = "1.2.3";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "6256e0d5ab6d465152c8a8a21bdb97b50e155255d6bedd586ce214ed7a1fb9d7";
sha256 = "0db9d1dd2e9624befff25f7e1a356f32366e4f05fd7e1a1783499816416ae28e";
};
# No tests in archive

View File

@@ -0,0 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi
, requests, six
, backports_unittest-mock, pluggy, pytest, pytestrunner }:
buildPythonPackage rec {
pname = "sseclient";
version = "0.0.19";
src = fetchPypi {
inherit pname version;
sha256 = "7a2ea3f4c8525ae9a677bc8193df5db88e23bcaafcc34938a1ee665975703a9f";
};
propagatedBuildInputs = [ requests six ];
checkInputs = [ backports_unittest-mock pytest pytestrunner ];
meta = with stdenv.lib; {
description = "Client library for reading Server Sent Event streams";
homepage = https://github.com/btubbs/sseclient;
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}

View File

@@ -1,10 +1,9 @@
{ stdenv, buildPythonPackage, fetchPypi
, unittest2, mock, requests }:
{ lib, buildPythonPackage, fetchPypi, isPy3k
, unittest2, mock, requests, simplejson }:
buildPythonPackage rec {
pname = "stripe";
version = "1.77.2";
name = "${pname}-${version}";
version = "1.79.1";
# Tests require network connectivity and there's no easy way to disable
# them. ~ C.
@@ -12,14 +11,14 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "3bcd55108dd2c0e853a91147ee843bc375f35767e64d0f7680e5bd82ddb7fbf1";
sha256 = "2ec19bf8ad588ec04b36c35f359196fa1991f9ad911b1686ac2a12651a154947";
};
buildInputs = [ unittest2 mock ];
checkInputs = [ unittest2 mock ];
propagatedBuildInputs = [ requests ];
propagatedBuildInputs = [ requests ] ++ lib.optional (!isPy3k) simplejson;
meta = with stdenv.lib; {
meta = with lib; {
description = "Stripe Python bindings";
homepage = https://github.com/stripe/stripe-python;
license = licenses.mit;

View File

@@ -0,0 +1,20 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "termstyle";
version = "0.1.11";
src = fetchPypi {
inherit pname version;
sha256 = "ef74b83698ea014112040cf32b1a093c1ab3d91c4dd18ecc03ec178fd99c9f9f";
};
# Only manual tests
doCheck = false;
meta = with lib; {
description = "Console colouring for python";
homepage = "https://pypi.python.org/pypi/python-termstyle/0.1.10";
license = licenses.bsdOriginal;
};
}

View File

@@ -0,0 +1,23 @@
{ lib, buildPythonPackage, fetchPypi, pytest }:
buildPythonPackage rec {
pname = "text-unidecode";
version = "1.2";
src = fetchPypi {
inherit pname version;
sha256 = "5a1375bb2ba7968740508ae38d92e1f889a0832913cb1c447d5e2046061a396d";
};
checkInputs = [ pytest ];
checkPhase = ''
py.test
'';
meta = with lib; {
description = "The most basic Text::Unidecode port";
homepage = https://github.com/kmike/text-unidecode;
license = licenses.artistic1;
};
}

View File

@@ -25,11 +25,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "textacy";
version = "0.5.0";
version = "0.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "6fc4603fd52c386081b063ef7aa15ca77e5e937a3064b197359659fccfdeb406";
sha256 = "70ebd8f6536c1536132c997988a4f27731a2db5a7ca7bab29fb33746b444959f";
};
disabled = isPy27; # 2.7 requires backports.csv

View File

@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "tifffile";
version = "0.13.5";
version = "0.14.0";
src = fetchPypi {
inherit pname version;
sha256 = "bca0fc9eaf609a27ebd99d8466e05d5a6e79389957f17582b70643dbca65e3d8";
sha256 = "eff44f71782dce38c604921a1b29ddad0d007ac9871d66e9c872fd6fc311334e";
};
checkInputs = [ nose ];

View File

@@ -0,0 +1,20 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "tmdb3";
version = "0.7.2";
src = fetchPypi {
inherit pname version;
sha256 = "9b6e043b8a65d159e7fc8f720badc7ffee5109296e38676c107454e03a895983";
};
# no tests implemented
doCheck = false;
meta = with lib; {
description = "Python implementation of the v3 API for TheMovieDB.org, allowing access to movie and cast information";
homepage = https://pypi.python.org/pypi/tmdb3;
license = licenses.bsd3;
};
}

View File

@@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "tqdm";
version = "4.19.5";
version = "4.19.6";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "df32e6f127dc0ccbc675eadb33f749abbcb8f174c5cb9ec49c0cdb73aa737377";
sha256 = "5ec0d4442358e55cdb4a0471d04c6c831518fd8837f259db5537d90feab380df";
};
buildInputs = [ nose coverage glibcLocales flake8 ];

View File

@@ -0,0 +1,27 @@
{ lib, buildPythonPackage, fetchFromGitHub, requests, mock, responses, pytest }:
buildPythonPackage rec {
pname = "tunigo";
version = "1.0.0";
propagatedBuildInputs = [ requests ];
src = fetchFromGitHub {
owner = "trygveaa";
repo = "python-tunigo";
rev = "v${version}";
sha256 = "07q9girrjjffzkn8xj4l3ynf9m4psi809zf6f81f54jdb330p2fs";
};
checkInputs = [ mock responses pytest ];
checkPhase = ''
py.test
'';
meta = with lib; {
description = "Python API for the browse feature of Spotify";
homepage = https://github.com/trygveaa/python-tunigo;
license = licenses.asl20;
};
}

Some files were not shown because too many files have changed in this diff Show More