Merge branch 'master' into staging-next

Comments on conflicts:
- llvm: d6f401e1 vs. 469ecc70 - docs for 6 and 7 say the default is
  to build all targets, so we should be fine
- some pypi hashes: they were equivalent, just base16 vs. base32
This commit is contained in:
Vladimír Čunát
2019-02-01 09:22:29 +01:00
974 changed files with 16880 additions and 9001 deletions
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, git, gitdb2, mock, nose, ddt }:
{ lib, buildPythonPackage, fetchPypi, isPy27, substituteAll, git, gitdb2, mock, nose, ddt }:
buildPythonPackage rec {
version = "2.1.11";
@@ -9,12 +9,15 @@ buildPythonPackage rec {
sha256 = "8237dc5bfd6f1366abeee5624111b9d6879393d84745a507de0fda86043b65a8";
};
checkInputs = [ mock nose ddt ];
propagatedBuildInputs = [ gitdb2 ];
patches = [
(substituteAll {
src = ./hardcode-git-path.patch;
inherit git;
})
];
postPatch = ''
sed -i "s|^refresh()$|refresh(path='${git}/bin/git')|" git/__init__.py
'';
checkInputs = [ nose ] ++ lib.optional isPy27 mock;
propagatedBuildInputs = [ gitdb2 ddt ];
# Tests require a git repo
doCheck = false;
@@ -0,0 +1,13 @@
diff --git a/git/cmd.py b/git/cmd.py
index a4faefe..51ad442 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -175,7 +175,7 @@ class Git(LazyMixin):
# CONFIGURATION
- git_exec_name = "git" # default that should work on linux and windows
+ git_exec_name = "@git@/bin/git"
# Enables debugging of GitPython's git commands
GIT_PYTHON_TRACE = os.environ.get("GIT_PYTHON_TRACE", False)
@@ -1,46 +1,33 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, imagemagick
, pytest
, psutil
, memory_profiler
, pytest_xdist
, imagemagick7Big
}:
let
soext = stdenv.hostPlatform.extensions.sharedLibrary;
magick_wand_library = "${imagemagick}/lib/libMagickWand-6.Q16${soext}";
imagemagick_library = "${imagemagick}/lib/libMagickCore-6.Q16${soext}";
in buildPythonPackage rec {
buildPythonPackage rec {
pname = "Wand";
version = "0.4.5";
version = "0.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "b40a2215545e8c7193b3fccd6e7251dc556ec9b878a4f67d992b056ff396bc65";
sha256 = "0rp1zdp2p7qngva5amcw4jb5i8gf569v8469gf6zj36hcnzksxjj";
};
checkInputs = [ pytest pytest_xdist memory_profiler psutil ];
buildInputs = [ imagemagick ];
inherit magick_wand_library imagemagick_library;
postPatch = ''
substituteAllInPlace wand/api.py
substituteInPlace wand/api.py --replace \
"magick_home = os.environ.get('MAGICK_HOME')" \
"magick_home = '${imagemagick7Big}'"
'';
# tests not included with pypi release
doCheck = false;
passthru.imagemagick = imagemagick7Big;
meta = with stdenv.lib; {
description = "Ctypes-based simple MagickWand API binding for Python";
homepage = http://wand-py.org/;
license = [ licenses.mit ];
};
passthru = {
inherit imagemagick;
maintainers = with maintainers; [ infinisil ];
};
}
@@ -0,0 +1,25 @@
{ lib, fetchPypi, buildPythonPackage, pythonOlder, aiohttp }:
buildPythonPackage rec {
pname = "aiohttp-socks";
version = "0.2.2";
src = fetchPypi {
inherit version;
pname = "aiohttp_socks";
sha256 = "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf";
};
propagatedBuildInputs = [ aiohttp ];
# Checks needs internet access
doCheck = false;
disabled = pythonOlder "3.5.3";
meta = {
description = "SOCKS proxy connector for aiohttp";
license = lib.licenses.asl20;
homepage = https://github.com/romis2012/aiohttp-socks;
};
}
@@ -0,0 +1,25 @@
{ lib, fetchPypi, buildPythonPackage, pythonOlder, attrs }:
buildPythonPackage rec {
pname = "aiorpcx";
version = "0.10.2";
src = fetchPypi {
inherit version;
pname = "aiorpcX";
sha256 = "1p88k15jh0d2a18pnnbfcamsqi2bxvmmhpizmdlxfdxf8vy5ggyj";
};
propagatedBuildInputs = [ attrs ];
disabled = pythonOlder "3.6";
# Checks needs internet access
doCheck = false;
meta = {
description = "Transport, protocol and framing-independent async RPC client and server implementation";
license = lib.licenses.mit;
homepage = https://github.com/kyuupichan/aiorpcX;
};
}
@@ -0,0 +1,37 @@
{ lib, buildPythonPackage, fetchPypi, future, networkx, pygments, lxml, colorama, matplotlib,
asn1crypto, click, pydot, ipython, pyqt5, pyperclip }:
buildPythonPackage rec {
version = "3.3.3";
pname = "androguard";
src = fetchPypi {
inherit pname version;
sha256 = "1zlmn3byh2whg7k2xmcd7yy43lcawhryjnzcxr9bhn54709b6iyd";
};
propagatedBuildInputs = [
future
networkx
pygments
lxml
colorama
matplotlib
asn1crypto
click
pydot
ipython
pyqt5
pyperclip
];
# Tests are not shipped on PyPI.
doCheck = false;
meta = {
description = "Tool and python library to interact with Android Files";
homepage = https://github.com/androguard/androguard;
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.pmiddend ];
};
}
@@ -0,0 +1,48 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pyfiglet
, pillow
, wcwidth
, future
, mock
, nose
}:
buildPythonPackage rec {
pname = "asciimatics";
version = "1.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "9101b0b6885542f324980bbe13a772475cd6a12678f601228eaaea412db919ab";
};
nativeBuildInputs = [
setuptools_scm
];
propagatedBuildInputs = [
pyfiglet
pillow
wcwidth
future
];
checkInputs = [
mock
nose
];
# tests require a pty emulator
# which is too complicated to setup here
doCheck = false;
meta = with lib; {
description = "Helps to create full-screen text UIs (from interactive forms to ASCII animations) on any platform";
homepage = https://github.com/peterbrittain/asciimatics;
license = licenses.asl20;
maintainers = with maintainers; [ cmcdragonkai ];
};
}
@@ -2,18 +2,18 @@
buildPythonPackage rec {
pname = "astral";
version = "1.7.1";
version = "1.9.2";
src = fetchPypi {
inherit pname version;
sha256 = "01raz1c29v08f05l395v1hxllad35m5ld1jj51knb53c0396y248";
sha256 = "179f72a086cee96487e60514bab81e821966953fc2e2f7091500d3d2c314e38b";
};
propagatedBuildInputs = [ pytz requests ];
checkInputs = [ pytest ];
checkPhase = ''
# https://github.com/sffjunkie/astral/pull/13
# https://github.com/sffjunkie/astral/pull/26
touch src/test/.api_key
py.test -m "not webtest"
'';
@@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, azure-common
, azure-storage-common
, isPy3k
, futures
}:
buildPythonPackage rec {
pname = "azure-storage-blob";
version = "1.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "65ebe2e54460566c2077c6b3773a2a0623eabc7b95602010cb51b84077087fda";
};
propagatedBuildInputs = [
azure-common
azure-storage-common
] ++ lib.optional (!isPy3k) futures;
# has no tests
doCheck = false;
meta = with lib; {
description = "Client library for Microsoft Azure Storage services containing the blob service APIs";
homepage = https://github.com/Azure/azure-storage-python/tree/master/azure-storage-blob;
license = licenses.mit;
maintainers = with maintainers; [ cmcdragonkai ];
};
}
@@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, azure-common
, cryptography
, python-dateutil
, requests
, isPy3k
, azure-storage-nspkg
}:
buildPythonPackage rec {
pname = "azure-storage-common";
version = "1.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "7ab607f9b8fd27b817482194b1e7d43484c65dcf2605aae21ad8706c6891934d";
};
propagatedBuildInputs = [
azure-common
cryptography
python-dateutil
requests
] ++ lib.optional (!isPy3k) azure-storage-nspkg;
# has no tests
doCheck = false;
meta = with lib; {
description = "Client library for Microsoft Azure Storage services containing common code shared by blob, file and queue";
homepage = https://github.com/Azure/azure-storage-python/tree/master/azure-storage-common;
license = licenses.mit;
maintainers = with maintainers; [ cmcdragonkai ];
};
}
@@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, azure-common
, azure-storage-common
, isPy3k
, futures
}:
buildPythonPackage rec {
pname = "azure-storage-file";
version = "1.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "5217b0441b671246a8d5f506a459fa3af084eeb9297c5be3bbe95d75d23bac2f";
};
propagatedBuildInputs = [
azure-common
azure-storage-common
] ++ lib.optional (!isPy3k) futures;
# has no tests
doCheck = false;
meta = with lib; {
description = "Client library for Microsoft Azure Storage services containing the file service APIs";
homepage = https://github.com/Azure/azure-storage-python/tree/master/azure-storage-file;
license = licenses.mit;
maintainers = with maintainers; [ cmcdragonkai ];
};
}
@@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, azure-nspkg
}:
buildPythonPackage rec {
pname = "azure-storage-nspkg";
version = "3.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "6f3bbe8652d5f542767d8433e7f96b8df7f518774055ac7c92ed7ca85f653811";
};
propagatedBuildInputs = [
azure-nspkg
];
# has no tests
doCheck = false;
meta = with lib; {
description = "Client library for Microsoft Azure Storage services owning the azure.storage namespace, user should not use this directly";
homepage = https://github.com/Azure/azure-storage-python/tree/master/azure-storage-nspkg;
license = licenses.mit;
maintainers = with maintainers; [ cmcdragonkai ];
};
}
@@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, azure-common
, azure-storage-common
}:
buildPythonPackage rec {
pname = "azure-storage-queue";
version = "1.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "0bafe9e61c0ce7b3f3ecadea21e931dab3248bd4989dc327a8666c5deae7f7ed";
};
propagatedBuildInputs = [
azure-common
azure-storage-common
];
# has no tests
doCheck = false;
meta = with lib; {
description = "Client library for Microsoft Azure Storage services containing the queue service APIs";
homepage = https://github.com/Azure/azure-storage-python/tree/master/azure-storage-queue;
license = licenses.mit;
maintainers = with maintainers; [ cmcdragonkai ];
};
}
@@ -0,0 +1,27 @@
{ lib,
fetchPypi,
requests,
buildPythonPackage
}:
buildPythonPackage rec {
pname = "braintree";
version = "3.50.0";
src = fetchPypi {
inherit pname version;
sha256 = "d1d7a6854b623f2c616451fa474113ac7fb8a2cbeb7dfad36dd3312113484030";
};
propagatedBuildInputs = [ requests ];
# pypi release does not include tests
doCheck = false;
meta = with lib; {
description = "Python library for integration with Braintree";
homepage = https://github.com/braintree/braintree_python;
license = licenses.mit;
maintainers = [ maintainers.ivegotasthma ];
};
}
@@ -1,7 +1,7 @@
{ stdenv, buildPythonPackage, fetchPypi
, mock, unittest2, nose
, twiggy, requests, offtrac, bugzilla, taskw, dateutil, pytz, keyring, six
, jinja2, pycurl, dogpile_cache, lockfile, click, pyxdg, future15 }:
, jinja2, pycurl, dogpile_cache, lockfile, click, pyxdg, future }:
buildPythonPackage rec {
pname = "bugwarrior";
@@ -15,7 +15,7 @@ buildPythonPackage rec {
buildInputs = [ mock unittest2 nose /* jira megaplan */ ];
propagatedBuildInputs = [
twiggy requests offtrac bugzilla taskw dateutil pytz keyring six
jinja2 pycurl dogpile_cache lockfile click pyxdg future15
jinja2 pycurl dogpile_cache lockfile click pyxdg future
];
# for the moment jira>=0.22 and megaplan>=1.4 are missing for running the test suite.
@@ -1,17 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, isPyPy }:
buildPythonPackage rec {
pname = "cachetools";
version = "2.1.0";
disabled = isPyPy; # a test fails
src = fetchPypi {
inherit pname version;
sha256 = "90f1d559512fc073483fe573ef5ceb39bf6ad3d39edc98dc55178a2b2b176fa3";
};
meta = with stdenv.lib; {
homepage = "https://github.com/tkem/cachetools";
license = licenses.mit;
};
}
@@ -66,4 +66,18 @@ buildPythonPackage rec {
# IOKit's dependencies are inconsistent between OSX versions, so this is the best we
# can do until nix 1.11's release
__impureHostDeps = [ "/usr/lib" ];
meta = with stdenv.lib; {
description = "A package which provides cryptographic recipes and primitives";
longDescription = ''
Cryptography includes both high level recipes and low level interfaces to
common cryptographic algorithms such as symmetric ciphers, message
digests, and key derivation functions.
Our goal is for it to be your "cryptographic standard library". It
supports Python 2.7, Python 3.4+, and PyPy 5.3+.
'';
homepage = https://github.com/pyca/cryptography;
license = with licenses; [ asl20 bsd3 psfl ];
maintainers = with maintainers; [ primeos ];
};
}
@@ -1,6 +1,4 @@
{ buildPythonPackage
, fetchPypi
}:
{ buildPythonPackage, fetchPypi, lib }:
buildPythonPackage rec {
# also bump cryptography
@@ -14,4 +12,12 @@ buildPythonPackage rec {
# No tests included
doCheck = false;
meta = with lib; {
description = "Test vectors for the cryptography package";
homepage = https://cryptography.io/en/latest/development/test-vectors/;
# Source: https://github.com/pyca/cryptography/tree/master/vectors;
license = with licenses; [ asl20 bsd3 ];
maintainers = with maintainers; [ primeos ];
};
}
@@ -1,6 +1,6 @@
{ lib, fetchPypi, buildPythonPackage, isPy3k
, agate, agate-excel, agate-dbf, agate-sql, six
, argparse, ordereddict, simplejson
, ordereddict, simplejson
, glibcLocales, nose, mock, unittest2
}:
@@ -16,7 +16,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
agate agate-excel agate-dbf agate-sql six
] ++ lib.optionals (!isPy3k) [
argparse ordereddict simplejson
ordereddict simplejson
];
checkInputs = [
@@ -0,0 +1,27 @@
{ lib,
fetchPypi,
django,
buildPythonPackage
}:
buildPythonPackage rec {
pname = "django-cors-headers";
version = "2.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "1qfa9awsj3f0nwygb0vdh4ilcsfi6zinzng73cd5864x2fbyxhn4";
};
propagatedBuildInputs = [ django ];
# pypi release does not include tests
doCheck = false;
meta = with lib; {
description = "Django app for handling server Cross-Origin Resource Sharing (CORS) headers";
homepage = https://github.com/OttoYiu/django-cors-headers;
license = licenses.mit;
maintainers = [ maintainers.ivegotasthma ];
};
}
@@ -0,0 +1,29 @@
{ lib,
fetchPypi,
django,
djangorestframework,
six,
buildPythonPackage
}:
buildPythonPackage rec {
pname = "django-rest-auth";
version = "0.9.3";
src = fetchPypi {
inherit pname version;
sha256 = "ad155a0ed1061b32e3e46c9b25686e397644fd6acfd35d5c03bc6b9d2fc6c82a";
};
propagatedBuildInputs = [ django djangorestframework six ];
# pypi release does not include tests
doCheck = false;
meta = with lib; {
description = "Django app that makes registration and authentication easy";
homepage = https://github.com/Tivix/django-rest-auth;
license = licenses.mit;
maintainers = [ maintainers.ivegotasthma ];
};
}
@@ -0,0 +1,27 @@
{ lib, buildPythonPackage, fetchPypi
, django }:
buildPythonPackage rec {
pname = "django-sesame";
version = "1.4";
src = fetchPypi {
inherit pname version;
sha256 = "081q3vd9waiajiipg99flw0vlzk920sz07067v3n5774gx0qhbaa";
};
checkInputs = [ django ];
checkPhase = ''
PYTHONPATH="$(pwd):$PYTHONPATH" \
DJANGO_SETTINGS_MODULE=sesame.test_settings \
django-admin test sesame
'';
meta = with lib; {
description = "URLs with authentication tokens for automatic login";
homepage = http://github.com/aaugustin/django-sesame;
license = licenses.bsd3;
maintainers = with maintainers; [ elohmeier ];
};
}
@@ -6,13 +6,11 @@
buildPythonPackage rec {
pname = "Django";
version = "1.11.17";
disabled = pythonOlder "2.7";
version = "1.11.18";
src = fetchurl {
url = "https://www.djangoproject.com/m/releases/1.11/${pname}-${version}.tar.gz";
sha256 = "10xlpm21ll8mgz5py41sz9vrd603qv7an736agbqxkxlyikfx1x7";
sha256 = "19b6f020als9hr4q1im5282yn2b1hzf586n9kjrlkrslq7da3k3k";
};
patches = stdenv.lib.optionals withGdal [
@@ -25,6 +25,11 @@ buildPythonPackage rec {
description = "A high-level Python Web framework";
homepage = https://www.djangoproject.com/;
license = licenses.bsd0;
knownVulnerabilities = [
# The patches were not backported due to Django 1.8 having reached EOL
https://www.djangoproject.com/weblog/2018/aug/01/security-releases/
https://www.djangoproject.com/weblog/2019/jan/04/security-releases/
];
};
}
@@ -13,6 +13,9 @@ buildPythonPackage rec {
sha256 = "9b8a245917e1bae131d3210c9ca7efbc066e60f32efa436e391c9803c3f4b61b";
};
# tests assume the availability of a mysql/postgresql database
doCheck = false;
propagatedBuildInputs = [ django ];
meta = with stdenv.lib; {
@@ -0,0 +1,30 @@
{ lib
, fetchPypi
, django
, pyjwt
, djangorestframework
, buildPythonPackage
}:
buildPythonPackage rec {
pname = "djangorestframework-jwt";
version = "1.11.0";
src = fetchPypi {
inherit pname version;
sha256 = "19rng6v1sw14mbjp5cplnrgxjnhlj8faalfw02iihi9s5w1k7zjy";
};
propagatedBuildInputs = [ pyjwt django djangorestframework ];
# ./runtests.py fails because the project must be tested against a django
# installation, there are missing database tables for User, that don't exist.
doCheck = false;
meta = with lib; {
description = "JSON Web Token Authentication support for Django REST Framework";
homepage = https://github.com/GetBlimp/django-rest-framework-jwt;
license = licenses.mit;
maintainers = [ maintainers.ivegotasthma ];
};
}
@@ -0,0 +1,28 @@
{ lib, buildPythonPackage, fetchPypi, six, requests, websocket_client, docker_pycreds }:
buildPythonPackage rec {
version = "1.10.6";
pname = "docker-py";
src = fetchPypi {
inherit pname version;
sha256 = "05f49f6hnl7npmi7kigg0ibqk8s3fhzx1ivvz1kqvlv4ay3paajc";
};
# The tests access the network.
doCheck = false;
propagatedBuildInputs = [
six
requests
websocket_client
docker_pycreds
];
meta = {
description = "Python library for the Docker Remote API";
homepage = https://github.com/docker/docker-py/;
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.pmiddend ];
};
}
@@ -2,12 +2,13 @@
buildPythonPackage rec {
pname = "dugong";
version = "3.5";
version = "3.7.4";
disabled = pythonOlder "3.3"; # Library does not support versions older than 3.3
src = fetchPypi {
inherit pname version;
sha256 = "0y0rdxbiwm03zv6vpvapqilrird3h8ijz7xmb0j7ds5j4p6q3g24";
extension = "tar.bz2";
sha256 = "1fb9kwib6jsd09bxiz70av6g0blscygkx7xzaz1b7ibd28ms77zd";
};
}
@@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "elasticsearch-dsl";
version = "6.2.1";
version = "6.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "0f0w23kzyym0fkzisdkcl4xpnm8fsi97v1kskyvfrhj3mxy179fh";
sha256 = "1gh8a0shqi105k325hgwb9avrpdjh0mc6mxwfg9ba7g6lssb702z";
};
propagatedBuildInputs = [ elasticsearch python-dateutil six ]
@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "eradicate";
version = "0.2.1";
version = "1.0";
src = fetchPypi {
inherit pname version;
sha256 = "092zmck919bn6sl31ixrzhn88g9nvhwzmwzpq8dzgn6c8k2h3bzr";
sha256 = "06nhs8wml5f5k96gbq7jl417bmsqnxy8aykpzbzrvm3gmqmaizag";
};
meta = with lib; {
@@ -8,11 +8,11 @@ assert pythonOlder "3.3" -> ipaddress != null;
buildPythonPackage rec {
pname = "Faker";
version = "1.0.1";
version = "1.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "067mdy9p1vbkypr3vazmrb0sga6maqbk542hr7hmzcb5lp3dr8sj";
sha256 = "0v1pjzn9z20ckgv3kji7c8nwcsm7670z4i43ic9skjrdbcqylwfq";
};
buildInputs = [ pytestrunner ];
@@ -30,6 +30,7 @@ buildPythonPackage rec {
] ++ lib.optional (pythonOlder "3.3") ipaddress;
postPatch = ''
find tests -type d -name "__pycache__" | xargs rm -r
substituteInPlace setup.py --replace "pytest>=3.8.0,<3.9" "pytest"
'';
@@ -0,0 +1,27 @@
{ lib, buildPythonPackage, fetchPypi, requests, beautifulsoup4, pytest, requests-mock,
pytestrunner }:
buildPythonPackage rec {
pname = "favicon";
version = "0.5.1";
src = fetchPypi {
inherit pname version;
sha256 = "01jhb66nrqbf22z6ybpi8ndw6zifgysdmnh547027g96nz51669y";
};
buildInputs = [ pytestrunner ];
checkInputs = [ pytest requests-mock ];
propagatedBuildInputs = [ requests beautifulsoup4 ];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Find a website's favicon";
homepage = http://github.com/scottwernervt/favicon;
license = licenses.mit;
maintainers = with maintainers; [ elohmeier ];
};
}
@@ -1,35 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchFromGitLab
, libcloud
, pyyaml
, paramiko
, pyasn1
, pyasn1-modules
, pillow
, mwclient
, GitPython
, isPy3k
}:
buildPythonPackage rec {
version = "2016-05-31";
pname = "fdroidserver-git";
disabled = ! isPy3k;
src = fetchFromGitLab {
owner = "fdroid";
repo = "fdroidserver";
rev = "401649e0365e6e365fc48ae8a3af94768af865f3";
sha256 = "1mmi2ffpym1qw694yj938kc7b4xhq0blri7wkjaqddcyykjyr94d";
};
propagatedBuildInputs = [ libcloud pyyaml paramiko pyasn1 pyasn1-modules pillow mwclient GitPython ];
meta = with stdenv.lib; {
homepage = https://f-droid.org;
description = "Server and tools for F-Droid, the Free Software repository system for Android";
license = licenses.agpl3;
};
}
@@ -8,11 +8,11 @@
buildPythonPackage rec {
pname = "fonttools";
version = "3.34.2";
version = "3.37.0";
src = fetchPypi {
inherit pname version;
sha256 = "1ahs82jnc8f7gksh51asg9dcifhslyfdz9dry9sxq424q1p5k9lz";
sha256 = "1bf7k6qdvi2ycw87g8iqy0rwl3ms25k3zz6ix1fpsk8qx36gk9x1";
extension = "zip";
};
@@ -4,13 +4,13 @@
, fetchPypi
, html5lib
, wcwidth
, nose
, pytest
}:
buildPythonPackage rec {
pname = "ftfy";
version = "5.5.0";
version = "5.5.1";
# ftfy v5 only supports python3. Since at the moment the only
# packages that use ftfy are spacy and textacy which both support
# python 2 and 3, they have pinned ftfy to the v4 branch.
@@ -20,26 +20,26 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "525ea45a871f52ddb170e66b01f35f1b3022995016c81efa305e628937b85443";
sha256 = "1ci6xrj4g01a97nymxpv9nj820nlmgzc4ybaz9k46i6bnxzpax7s";
};
propagatedBuildInputs = [ html5lib wcwidth ];
checkInputs = [
nose
propagatedBuildInputs = [
html5lib
wcwidth
];
checkInputs = [
pytest
];
# We suffix PATH like this because the tests want the ftfy executable
checkPhase = ''
nosetests -v tests
PATH=$out/bin:$PATH pytest
'';
# Several tests fail with
# FileNotFoundError: [Errno 2] No such file or directory: 'ftfy'
doCheck = false;
meta = with stdenv.lib; {
description = "Given Unicode text, make its representation consistent and possibly less broken.";
homepage = https://github.com/LuminosoInsight/python-ftfy/tree/master/tests;
description = "Given Unicode text, make its representation consistent and possibly less broken";
homepage = https://github.com/LuminosoInsight/python-ftfy;
license = licenses.mit;
maintainers = with maintainers; [ sdll aborsu ];
};
@@ -0,0 +1,22 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder }:
buildPythonPackage rec {
pname = "future-fstrings";
version = "0.4.5";
src = fetchPypi {
inherit version;
pname = "future_fstrings";
sha256 = "891c5d5f073b3e3ff686bebde0a4c45c479065f45c8cbd6de19323d5a50738a8";
};
# No tests included in Pypi archive
doCheck = false;
meta = with lib; {
homepage = https://github.com/asottile/future-fstrings;
description = "A backport of fstrings to python<3.6";
license = licenses.mit;
maintainers = with maintainers; [ nyanloutre ];
};
}
@@ -0,0 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi, python-Levenshtein, pycodestyle, hypothesis, pytest }:
buildPythonPackage rec {
pname = "fuzzywuzzy";
version = "0.17.0";
src = fetchPypi {
inherit pname version;
sha256 = "6f49de47db00e1c71d40ad16da42284ac357936fa9b66bea1df63fed07122d62";
};
propagatedBuildInputs = [ python-Levenshtein ];
checkInputs = [ pycodestyle hypothesis pytest ];
meta = with stdenv.lib; {
description = "Fuzzy string matching for Python";
homepage = https://github.com/seatgeek/fuzzywuzzy;
license = licenses.gpl2;
maintainers = with maintainers; [ earvstedt ];
};
}
@@ -3,12 +3,12 @@
buildPythonPackage rec {
pname = "google-api-python-client";
version = "1.7.7";
version = "1.7.8";
#disabled = !isPy3k; # TODO: Python 2.7 was deprecated but weboob still depends on it.
src = fetchPypi {
inherit pname version;
sha256 = "1nlsp8cll6v9w4649j98xw545bfnqa2xs7m9faa9mxc0kp8ff1li";
sha256 = "0n18frf0ghmwf5lxmkyski4b5h1rsx93ibq3iw0k3s2wxl371406";
};
# No tests included in archive
@@ -20,5 +20,6 @@ buildPythonPackage rec {
description = "The core Python library for accessing Google APIs";
homepage = https://github.com/google/google-api-python-client;
license = licenses.asl20;
maintainers = with maintainers; [ primeos ];
};
}
@@ -0,0 +1,20 @@
{ lib, fetchFromGitHub, buildPythonApplication }:
buildPythonApplication {
name = "gprof2dot-2017-09-19";
src = fetchFromGitHub {
owner = "jrfonseca";
repo = "gprof2dot";
rev = "2017.09.19";
sha256 = "1b5wvjv5ykbhz7aix7l3y7mg1hxi0vgak4a49gr92sdlz8blj51v";
};
meta = with lib; {
homepage = https://github.com/jrfonseca/gprof2dot;
description = "Python script to convert the output from many profilers into a dot graph";
license = licenses.lgpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.pmiddend ];
};
}
@@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyparsing
, future
, pytest
, pytestrunner
}:
buildPythonPackage rec {
pname = "grandalf";
version = "0.6";
# fetch from github to acquire tests
src = fetchFromGitHub {
owner = "bdcht";
repo = "grandalf";
rev = "v${version}";
sha256 = "1f1l288sqna0bca7dwwvyw7wzg9b2613g6vc0g0vfngm7k75b2jg";
};
propagatedBuildInputs = [
pyparsing
future
];
checkInputs = [ pytest pytestrunner ];
patches = [ ./no-setup-requires-pytestrunner.patch ];
checkPhase = ''
pytest tests
'';
meta = with lib; {
description = "A python package made for experimentations with graphs and drawing algorithms";
homepage = https://github.com/bdcht/grandalf;
license = licenses.gpl2;
maintainers = with maintainers; [ cmcdragonkai ];
};
}
@@ -0,0 +1,15 @@
diff --git a/setup.py b/setup.py
index 0470622..d574ceb 100755
--- a/setup.py
+++ b/setup.py
@@ -75,8 +75,8 @@ setup(
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
- setup_requires=['pytest-runner',],
- tests_require=['pytest',],
+ setup_requires=[],
+ tests_require=['pytest','pytest-runner',],
install_requires=['pyparsing','future'],
@@ -8,11 +8,11 @@
buildPythonPackage rec {
pname = "httpsig";
version = "1.2.0";
version = "1.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "19ng7y7blp13z081z5a6dxng1p8xlih7g6frmsg3q5ri8lvpybc7";
sha256 = "1rkc3zwsq53rjsmc47335m4viljiwdbmw3y2zry4z70j8q1dbmki";
};
buildInputs = [ setuptools_scm ];
@@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "immutables";
version = "0.6";
version = "0.9";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "63023fa0cceedc62e0d1535cd4ca7a1f6df3120a6d8e5c34e89037402a6fd809";
sha256 = "1h7i00x6sdbw62rdipp0kaw1mcrvfipxv0054x1n2r4q4j11q7fp";
};
meta = {
@@ -1,17 +1,20 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pytest
, unicodecsv
}:
buildPythonPackage rec {
pname = "jellyfish";
version = "0.6.1";
version = "0.7.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "5104e45a2b804b48a46a92a5e6d6e86830fe60ae83b1da32c867402c8f4c2094";
sha256 = "1hd1xzw22g1cp2dpf5bbpg8a7iac2v9hw0xrj5n5j83inh5n99br";
};
checkInputs = [ pytest unicodecsv ];
@@ -15,11 +15,13 @@ buildPythonPackage rec {
propagatedBuildInputs = [ pyyaml ];
# No tests in archive
doCheck = false;
meta = with stdenv.lib; {
description = "Configuration manager for python applications";
homepage = https://emre.github.io/kaptan/;
homepage = https://kaptan.readthedocs.io/;
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ jgeerds ];
};
@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "latexcodec";
version = "1.0.5";
version = "1.0.6";
src = fetchPypi {
inherit pname version;
sha256 = "0zdd1gf24i83ykadx0y30n3001j43scqr2saql3vckk5c39dj1wn";
sha256 = "0s4wdbg0w2l8pj3i0y4510i0s04p8nhxcsa2z41bjsv0k66npb81";
};
propagatedBuildInputs = [ six ];
@@ -21,8 +21,6 @@ buildPythonPackage rec {
description = "Scripting library for tmux";
homepage = https://libtmux.readthedocs.io/;
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ jgeerds ];
};
}
@@ -0,0 +1,18 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "limitlessled";
version = "1.1.3";
src = fetchPypi {
inherit pname version;
sha256 = "0pd71wxqjvznx10brsj1sgy3420bz7awbzk9jlj422rrdxql754j";
};
meta = with lib; {
description = "Control LimitlessLED products";
homepage = https://github.com/happyleavesaoc/python-limitlessled/;
license = licenses.mit;
maintainers = with maintainers; [ sephalon ];
};
}
@@ -0,0 +1,28 @@
{ lib, buildPythonPackage, fetchPypi, aiohttp, future-fstrings, pythonOlder }:
buildPythonPackage rec {
pname = "mautrix-appservice";
version = "0.3.7";
src = fetchPypi {
inherit pname version;
sha256 = "1615220f5bb75e2093ad1e30f4c2e1243499b0b20caef014fd73faadd3bfea6c";
};
propagatedBuildInputs = [
aiohttp
future-fstrings
];
# No tests available
doCheck = false;
disabled = pythonOlder "3.5";
meta = with lib; {
homepage = https://github.com/tulir/mautrix-appservice-python;
description = "A Python 3 asyncio-based Matrix application service framework";
license = licenses.mit;
maintainers = with maintainers; [ nyanloutre ];
};
}
@@ -7,12 +7,12 @@
buildPythonPackage rec {
pname = "mechanize";
version = "0.3.7";
version = "0.4.0";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1licf3wiy21pncg8hkx58r7xj4ylrqa8jcfh9n4rh23rmykf2rpf";
sha256 = "15g58z3hy1pgi5sygpif28jyqj79iz4vw2mh5nxdydl4w20micvf";
};
propagatedBuildInputs = [ html5lib ];
@@ -1,7 +1,6 @@
{ stdenv
, buildPythonPackage
, fetchgit
, fetchurl
, fetchFromGitHub
, pyramid
, simplejson
, konfig
@@ -9,26 +8,22 @@
buildPythonPackage rec {
pname = "mozsvc";
version = "0.8";
version = "0.10";
src = fetchgit {
url = https://github.com/mozilla-services/mozservices.git;
rev = "refs/tags/${version}";
sha256 = "1zci2ikk83mf7va88c83dr6snfh4ddjqw0lsg3y29qk5nxf80vx2";
src = fetchFromGitHub {
owner = "mozilla-services";
repo = "mozservices";
rev = version;
sha256 = "0a0558g8j55pd1nnhnnf3k377jv6cah8lxb24v98rq8kxr5960cg";
};
patches = stdenv.lib.singleton (fetchurl {
url = https://github.com/nbp/mozservices/commit/f86c0b0b870cd8f80ce90accde9e16ecb2e88863.diff;
sha256 = "1lnghx821f6dqp3pa382ka07cncdz7hq0mkrh44d0q3grvrlrp9n";
});
doCheck = false; # lazy packager
doCheck = false; # too many dependencies and conflicting versions; I (nadrieril) gave up
propagatedBuildInputs = [ pyramid simplejson konfig ];
meta = with stdenv.lib; {
homepage = https://github.com/mozilla-services/mozservices;
description = "Various utilities for Mozilla apps";
license = licenses.mpl20;
maintainers = with maintainers; [ nadrieril ];
};
}
@@ -1,4 +1,4 @@
{ buildPythonPackage, stdenv, glibcLocales, mock, nose, isPy3k, argparse, jinja2, six
{ buildPythonPackage, stdenv, glibcLocales, mock, nose, isPy3k, jinja2, six
, fetchPypi
}:
@@ -18,7 +18,7 @@ buildPythonPackage rec {
LC_ALL="en_US.UTF-8" nosetests
'';
propagatedBuildInputs = [ argparse jinja2 six ];
propagatedBuildInputs = [ jinja2 six ];
meta = with stdenv.lib; {
homepage = https://github.com/domenkozar/mr.bob;
@@ -4,13 +4,13 @@
buildPythonPackage rec {
pname = "mysql-connector";
version = "8.0.13";
version = "8.0.14";
src = fetchFromGitHub {
owner = "mysql";
repo = "mysql-connector-python";
rev = version;
sha256 = "1qb6m3cp6zxmr49bp6g5g5b75yszgac1h26i2hza61mrvd235688";
sha256 = "1cf0ic2mx339j62579xjlaw5q5sz61dac379c7lsy3ln3krsw3y9";
};
propagatedBuildInputs = [ protobuf ];
@@ -0,0 +1,25 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, nanomsg }:
buildPythonPackage rec {
pname = "nanomsg-python";
version = "1.0.20190114";
src = fetchFromGitHub {
owner = "tonysimpson";
repo = "nanomsg-python";
rev = "3acd9160f90f91034d4a43ce603aaa19fbaf1f2e";
sha256 = "1qgybcpmm9xxrn39alcgdcpvwphgm1glkbnwx0ljpz4nd1jsnyrl";
};
buildInputs = [ nanomsg ];
# Tests requires network connections
doCheck = false;
meta = with stdenv.lib; {
description = "Bindings for nanomsg";
homepage = https://github.com/tonysimpson/nanomsg-python;
license = licenses.mit;
maintainers = with maintainers; [ bgamari ];
};
}
@@ -0,0 +1,27 @@
{ lib, buildPythonPackage, fetchPypi, nose }:
buildPythonPackage rec {
pname = "nanotime";
version = "0.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "c7cc231fc5f6db401b448d7ab51c96d0a4733f4b69fabe569a576f89ffdf966b";
};
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
# tests currently fail
doCheck = false;
meta = with lib; {
description = "Provides a time object that keeps time as the number of nanoseconds since the UNIX epoch";
homepage = https://github.com/jbenet/nanotime/tree/master/python;
license = licenses.mit;
maintainers = with maintainers; [ cmcdragonkai ];
};
}
@@ -2,7 +2,7 @@
let
pname = "nbxmpp";
version = "0.6.8";
version = "0.6.9";
name = "${pname}-${version}";
in buildPythonPackage rec {
inherit pname version;
@@ -11,7 +11,7 @@ in buildPythonPackage rec {
name = "${name}.tar.bz2";
url = "https://dev.gajim.org/gajim/python-nbxmpp/repository/archive.tar.bz2?"
+ "ref=${name}";
sha256 = "09zrqz01j45kvayfscd66avkrnn237lbjg9li5hjhyw92h6hkkc4";
sha256 = "14xrq0r5k1dk7rwj4cxyxfapi6gbnqg70mz94g6hn9ij06284mi7";
};
propagatedBuildInputs = [ pyopenssl ];
@@ -13,7 +13,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "3a6e2833e613c1c239baf05a19f66b5920915e62c07251d3ab3f3acb017ef5d7";
sha256 = "1mzmgq0wnfizmg9m2wn0c9g9282rdgv1jnphp8ww5h8kwqrjhvis";
};
buildInputs = [ nose ];
@@ -13,13 +13,13 @@ let
# Therefore we create a separate env for it.
scons = pkgs.python27.withPackages(ps: [ pkgs.scons ]);
in buildPythonPackage rec {
version = "0.6.0.6";
version = "0.6.1";
pname = "Nuitka";
# Latest version is not yet on PyPi
src = fetchurl {
url = "https://github.com/kayhayen/Nuitka/archive/${version}.tar.gz";
sha256 = "1i5p4ia4qcqmfb9k90g3ssbr090q555fdpc32sl4x6rgqfw5ddj4";
sha256 = "0ncclbj9qdd88fs26mvgf217m7kgfcy1zgsyzi1j65b6z2wywl9a";
};
checkInputs = [ vmprof pyqt4 ];
@@ -7,7 +7,6 @@
, isPy3k
, numpy
, llvmlite
, argparse
, funcsigs
, singledispatch
, libcxx
@@ -24,7 +23,7 @@ buildPythonPackage rec {
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
propagatedBuildInputs = [numpy llvmlite argparse] ++ stdenv.lib.optional (!isPy3k) funcsigs ++ stdenv.lib.optional (isPy27 || isPy33) singledispatch;
propagatedBuildInputs = [numpy llvmlite] ++ stdenv.lib.optional (!isPy3k) funcsigs ++ stdenv.lib.optional (isPy27 || isPy33) singledispatch;
# Copy test script into $out and run the test suite.
checkPhase = ''
@@ -2,7 +2,6 @@
, buildPythonPackage
, fetchgit
, pyptlib
, argparse
, twisted
, pycrypto
, pyyaml
@@ -23,7 +22,7 @@ buildPythonPackage rec {
substituteInPlace setup.py --replace "argparse" ""
'';
propagatedBuildInputs = [ pyptlib argparse twisted pycrypto pyyaml ];
propagatedBuildInputs = [ pyptlib twisted pycrypto pyyaml ];
# No tests in archive
doCheck = false;
@@ -5,7 +5,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "b2e7fd694d3cffcee79317bad492d60c0aa887aea6916517c051c3247b33b5a5";
sha256 = "19dm6dxj9hsiq0bnb4d6ms3sh2hcss9d9fhpjgkwxzrw9mlzvrxj";
};
buildInputs = [ pytest ];
@@ -1,76 +0,0 @@
{ buildPythonPackage
, fetchPypi
, stdenv
, pytest
, glibcLocales
, cython
, dateutil
, scipy
, numexpr
, pytz
, xlrd
, bottleneck
, sqlalchemy
, lxml
, html5lib
, beautifulsoup4
, openpyxl
, tables
, xlwt
, libcxx ? null
}:
let
inherit (stdenv.lib) optional optionalString;
inherit (stdenv) isDarwin;
in buildPythonPackage rec {
pname = "pandas";
version = "0.17.1";
src = fetchPypi {
inherit pname version;
sha256 = "cfd7214a7223703fe6999fbe34837749540efee1c985e6aee9933f30e3f72837";
};
LC_ALL = "en_US.UTF-8";
buildInputs = [ pytest glibcLocales ] ++ optional isDarwin libcxx;
propagatedBuildInputs = [
cython
dateutil
scipy
numexpr
pytz
xlrd
bottleneck
sqlalchemy
lxml
html5lib
beautifulsoup4
openpyxl
tables
xlwt
];
doCheck = false;
# For OSX, we need to add a dependency on libcxx, which provides
# `complex.h` and other libraries that pandas depends on to build.
postPatch = optionalString isDarwin ''
cpp_sdk="${libcxx}/include/c++/v1";
echo "Adding $cpp_sdk to the setup.py common_include variable"
substituteInPlace setup.py \
--replace "['pandas/src/klib', 'pandas/src']" \
"['pandas/src/klib', 'pandas/src', '$cpp_sdk']"
'';
meta = {
# https://github.com/pandas-dev/pandas/issues/14866
# pandas devs are no longer testing i686 so safer to assume it's broken
broken = stdenv.isi686;
homepage = http://pandas.pydata.org/;
description = "Python Data Analysis Library";
license = stdenv.lib.licenses.bsd3;
maintainers = with stdenv.lib.maintainers; [ shlevy ];
platforms = stdenv.lib.platforms.unix;
};
}
@@ -6,7 +6,6 @@
, paste
, PasteDeploy
, cheetah
, argparse
}:
buildPythonPackage rec {
@@ -19,7 +18,7 @@ buildPythonPackage rec {
};
buildInputs = [ nose ];
propagatedBuildInputs = [ six paste PasteDeploy cheetah argparse ];
propagatedBuildInputs = [ six paste PasteDeploy cheetah ];
doCheck = false;
@@ -10,14 +10,14 @@
buildPythonPackage rec {
pname = "peewee";
version = "3.8.1";
version = "3.8.2";
# pypi release does not provide tests
src = fetchFromGitHub {
owner = "coleifer";
repo = pname;
rev = version;
sha256 = "0z6fdihmvqfg0ysa94g4w2w7146fsi2gnrgh90b4i1s3wj8iaxqy";
sha256 = "0h6wr7yq4cpnh2ypm83asvs2y54346f5j9xbg4lwb0w3rgr9zndq";
};
@@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "pika";
version = "0.12.0";
version = "0.13.0";
src = fetchPypi {
inherit pname version;
sha256 = "306145b8683e016d81aea996bcaefee648483fc5a9eb4694bb488f54df54a751";
sha256 = "1104b0jm7qs9b211hw6siddflvf56ag4lfsjy6yfbczds4lxhf2k";
};
# Tests require twisted which is only availalble for python-2.x
@@ -0,0 +1,20 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k }:
buildPythonPackage rec {
pname = "precis-i18n";
version = "1.0.0";
disabled = !isPy3k;
src = fetchPypi {
pname = "precis_i18n";
inherit version;
sha256 = "0gjhvwd8aifx94rl1ag08vlmndyx2q3fkyqb0c4i46x3p2bc2yi2";
};
meta = {
homepage = https://github.com/byllyfish/precis_i18n;
description = "Internationalized usernames and passwords";
license = lib.licenses.mit;
};
}
@@ -1,39 +1,38 @@
{ stdenv
, python
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, pytest
, python-utils
, sphinx
, coverage
, execnet
, flake8
, pytestpep8
, pytestflakes
, pytestcov
, pytestcache
, pep8
, pytestrunner
, freezegun
}:
buildPythonPackage rec {
pname = "progressbar2";
version = "3.12.0";
version = "3.39.2";
# Use source from GitHub, PyPI is missing tests
# https://github.com/WoLpH/python-progressbar/issues/151
src = fetchFromGitHub {
owner = "WoLpH";
repo = "python-progressbar";
rev = "v${version}";
sha256 = "1gk45sh8cd0kkyvzcvx95z6nlblmyx0x189mjfv3vfa43cr1mb0f";
src = fetchPypi {
inherit pname version;
sha256 = "6eb5135b987caca4212d2c7abc2923d4ad5ba18bb34ccbe7044b3628f52efc2c";
};
postPatch = ''
rm -r tests/__pycache__
rm tests/*.pyc
'';
propagatedBuildInputs = [ python-utils ];
nativeBuildInputs = [ pytestrunner ];
checkInputs = [
pytest sphinx coverage execnet flake8 pytestpep8 pytestflakes pytestcov
pytestcache pep8
pytest sphinx flake8 pytestpep8 pytestflakes pytestcov
pytestcache freezegun
];
# ignore tests on the nix wrapped setup.py and don't flake .eggs directory
checkPhase = ''
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, python, isPy3k, fetchurl, arrow-cpp, cmake, cython, futures, numpy, pandas, pytest, pkgconfig, setuptools_scm, six }:
{ lib, buildPythonPackage, python, isPy3k, fetchurl, arrow-cpp, cmake, cython, futures, hypothesis, numpy, pandas, pytest, pkgconfig, setuptools_scm, six }:
let
_arrow-cpp = arrow-cpp.override { inherit python; };
@@ -13,10 +13,16 @@ buildPythonPackage rec {
nativeBuildInputs = [ cmake cython pkgconfig setuptools_scm ];
propagatedBuildInputs = [ numpy six ] ++ lib.optionals (!isPy3k) [ futures ];
checkInputs = [ pandas pytest ];
checkInputs = [ hypothesis pandas pytest ];
PYARROW_BUILD_TYPE = "release";
PYARROW_CMAKE_OPTIONS = "-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib";
PYARROW_CMAKE_OPTIONS = [
"-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib"
# This doesn't use setup hook to call cmake so we need to workaround #54606
# ourselves
"-DCMAKE_POLICY_DEFAULT_CMP0025=NEW"
];
preCheck = ''
rm pyarrow/tests/test_jvm.py
@@ -1,19 +1,20 @@
{ lib, fetchurl, buildPythonPackage, requests, six, zeroconf, protobuf, casttube }:
{ lib, fetchPypi, buildPythonPackage, requests, zeroconf, protobuf, casttube, isPy3k }:
buildPythonPackage rec {
pname = "PyChromecast";
version = "2.3.0";
name = pname + "-" + version;
version = "2.4.0";
src = fetchurl {
url = "mirror://pypi/p/pychromecast/${name}.tar.gz";
sha256 = "f385168e34d2ef47f976c8e41bad2f58f5ca004634c0ccb1a12623d8beb2fa38";
src = fetchPypi {
inherit pname version;
sha256 = "0q012ghssk2xhm17v28sc2lv62vk7wd5p7zzdbgxk6kywfx8yvm2";
};
propagatedBuildInputs = [ requests six zeroconf protobuf casttube ];
disabled = !isPy3k;
propagatedBuildInputs = [ requests zeroconf protobuf casttube ];
meta = with lib; {
description = "Library for Python 2 and 3 to communicate with the Google Chromecast";
description = "Library for Python 3.4+ to communicate with the Google Chromecast";
homepage = https://github.com/balloob/pychromecast;
license = licenses.mit;
maintainers = with maintainers; [ abbradar ];
@@ -2,13 +2,13 @@
buildPythonPackage rec {
pname = "pydub";
version = "0.23.0";
version = "0.23.1";
# pypi version doesn't include required data files for tests
src = fetchFromGitHub {
owner = "jiaaro";
repo = pname;
rev = "v${version}";
sha256 = "1ijp9hlxi2d0f1ah9yj9j8cz18i9ny9jwrf2irvz58bgyv29m8bn";
sha256 = "1v0bghy4j2nnkgf1r8rbz4s7war872asyy08pc0x1iy1qs275i7s";
};
@@ -1,47 +0,0 @@
{ stdenv, lib, fetchFromBitbucket, buildPythonPackage, python, smpeg, libX11
, SDL, SDL_image, SDL_mixer, SDL_ttf, libpng, libjpeg, portmidi
}:
buildPythonPackage rec {
pname = "pygame";
version = "2016-05-17";
name = pname + "-" + version;
src = fetchFromBitbucket {
owner = "pygame";
repo = "pygame";
rev = "575c7a74d85a37db7c645421c02cf0b6b78a889f";
sha256 = "1i5xqmw93kfidcji2wacgkm5y4mcnbksy8iimih0729k19rbhznc";
};
buildInputs = [
SDL SDL_image SDL_mixer SDL_ttf libpng libjpeg
smpeg portmidi libX11
];
# Tests fail because of no audio device and display.
doCheck = false;
preConfigure = ''
sed \
-e "s/^origincdirs = .*/origincdirs = []/" \
-e "s/^origlibdirs = .*/origlibdirs = []/" \
-i config_unix.py
${lib.concatMapStrings (dep: ''
sed \
-e "/^origincdirs =/aorigincdirs += ['${lib.getDev dep}/include']" \
-e "/^origlibdirs =/aoriglibdirs += ['${lib.getLib dep}/lib']" \
-i config_unix.py
'') buildInputs
}
LOCALBASE=/ ${python.interpreter} config.py
'';
meta = with stdenv.lib; {
description = "Python library for games";
homepage = http://www.pygame.org/;
license = licenses.lgpl21Plus;
platforms = platforms.linux;
broken = true;
};
}
@@ -17,6 +17,8 @@ buildPythonPackage rec {
# Fix warning spam
./pygobject-2.28.6-set_qdata.patch
./pygobject-2.28.6-gio-types-2.32.patch
] ++ stdenv.lib.optionals stdenv.isDarwin [
./pygobject-2.0-fix-darwin.patch
];
configureFlags = [ "--disable-introspection" ];
@@ -0,0 +1,88 @@
--- a/gio/unix-types.defs
+++ b/gio/unix-types.defs
@@ -7,18 +7,6 @@
(gtype-id "G_TYPE_UNIX_CONNECTION")
)
-(define-object DesktopAppInfo
- (docstring
- "DesktopAppInfo(desktop_id) -> gio.unix.DesktopAppInfo\n\n"
- "gio.Unix.DesktopAppInfo is an implementation of gio.AppInfo\n"
- "based on desktop files."
- )
- (in-module "giounix")
- (parent "GObject")
- (c-name "GDesktopAppInfo")
- (gtype-id "G_TYPE_DESKTOP_APP_INFO")
-)
-
(define-object FDMessage
(in-module "giounix")
(parent "GSocketControlMessage")
--- a/gio/unix.defs
+++ b/gio/unix.defs
@@ -32,54 +32,6 @@
-;; From gdesktopappinfo.h
-
-(define-function desktop_app_info_get_type
- (c-name "g_desktop_app_info_get_type")
- (return-type "GType")
-)
-
-(define-function desktop_app_info_new_from_filename
- (c-name "g_desktop_app_info_new_from_filename")
- (return-type "GDesktopAppInfo*")
- (parameters
- '("const-char*" "filename")
- )
-)
-
-(define-function g_desktop_app_info_new_from_keyfile
- (c-name "g_desktop_app_info_new_from_keyfile")
- (return-type "GDesktopAppInfo*")
- (parameters
- '("GKeyFile*" "key_file")
- )
-)
-
-(define-function desktop_app_info_new
- (c-name "g_desktop_app_info_new")
- (is-constructor-of "GDesktopAppInfo")
- (return-type "GDesktopAppInfo*")
- (parameters
- '("const-char*" "desktop_id")
- )
-)
-
-(define-method get_is_hidden
- (of-object "GDesktopAppInfo")
- (c-name "g_desktop_app_info_get_is_hidden")
- (return-type "gboolean")
-)
-
-(define-function desktop_app_info_set_desktop_env
- (c-name "g_desktop_app_info_set_desktop_env")
- (return-type "none")
- (parameters
- '("const-char*" "desktop_env")
- )
-)
-
-
-
;; From gunixfdmessage.h
(define-function g_unix_fd_message_get_type
--- a/gio/unix.override
+++ b/gio/unix.override
@@ -24,7 +24,6 @@
#define NO_IMPORT_PYGOBJECT
#include <pygobject.h>
#include <gio/gio.h>
-#include <gio/gdesktopappinfo.h>
#include <gio/gunixinputstream.h>
#include <gio/gunixmounts.h>
#include <gio/gunixoutputstream.h>
@@ -1,24 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "pymongo";
version = "2.9.5";
src = fetchPypi {
inherit pname version;
sha256 = "912516ac6a355d7624374a38337b8587afe3eb535c0a5456b3bd12df637a6e70";
};
# Tests call a running mongodb instance
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/mongodb/mongo-python-driver;
license = licenses.asl20;
description = "Python driver for MongoDB ";
};
}
@@ -1,20 +1,20 @@
{ stdenv, buildPythonPackage, fetchPypi }:
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "pymongo";
version = "3.7.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "8c74e2a9b594f7962c62cef7680a4cb92a96b4e6e3c2f970790da67cc0213a7e";
};
# Tests call a running mongodb instance
doCheck = false;
meta = with stdenv.lib; {
meta = with lib; {
homepage = https://github.com/mongodb/mongo-python-driver;
license = licenses.asl20;
description = "Python driver for MongoDB ";
description = "Python driver for MongoDB";
};
}
@@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "pysam";
version = "0.15.1";
version = "0.15.2";
# Fetching from GitHub instead of PyPi cause the 0.13 src release on PyPi is
# missing some files which cause test failures.
@@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "pysam-developers";
repo = "pysam";
rev = "v${version}";
sha256 = "1vj367w6xbn9bpmksm162l1aipf7cj97h1q83y7jcpm33ihwpf7x";
sha256 = "03aczbzx6gmvgy60fhswpwkry7a8zb5q1pbp55v5gx8hk15n40k1";
};
buildInputs = [ bzip2 curl cython lzma zlib ];
@@ -2,16 +2,19 @@
buildPythonPackage rec {
pname = "pyspark";
version = "2.3.2";
version = "2.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "7fb3b4fe47edb0fb78cecec37e0f2a728590f17ef6a49eae55141a7a374c07c8";
sha256 = "1p7z5f1a20l7xkjkh88q9cvjw2x8jbrlydkycn5lh4qvx72vgmy9";
};
# pypandoc is broken with pandoc2, so we just lose docs.
postPatch = ''
sed -i "s/'pypandoc'//" setup.py
# Current release works fine with py4j 0.10.8.1
substituteInPlace setup.py --replace py4j==0.10.7 'py4j>=0.10.7,<0.11'
'';
propagatedBuildInputs = [ py4j ];
@@ -2,59 +2,46 @@
, setuptools_scm, setuptools, six, pluggy, funcsigs, isPy3k, more-itertools
, atomicwrites, mock, writeText, pathlib2
}:
buildPythonPackage rec {
version = "3.9.3";
pname = "pytest";
let generic = { version, sha256 }:
buildPythonPackage rec {
pname = "pytest";
inherit version;
preCheck = ''
# don't test bash builtins
rm testing/test_argcomplete.py
'';
preCheck = ''
# don't test bash builtins
rm testing/test_argcomplete.py
'';
src = fetchPypi {
inherit pname version sha256;
};
checkInputs = [ hypothesis mock ];
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ attrs py setuptools six pluggy more-itertools atomicwrites]
++ stdenv.lib.optionals (!isPy3k) [ funcsigs ]
++ stdenv.lib.optionals (pythonOlder "3.6") [ pathlib2 ];
checkPhase = ''
runHook preCheck
$out/bin/py.test -x testing/
runHook postCheck
'';
# Remove .pytest_cache when using py.test in a Nix build
setupHook = writeText "pytest-hook" ''
pytestcachePhase() {
find $out -name .pytest_cache -type d -exec rm -rf {} +
}
preDistPhases+=" pytestcachePhase"
'';
meta = with stdenv.lib; {
homepage = https://docs.pytest.org;
description = "Framework for writing tests";
maintainers = with maintainers; [ domenkozar lovek323 madjar lsix ];
license = licenses.mit;
platforms = platforms.unix;
};
};
in {
pytest_39 = generic {
version = "3.9.3";
src = fetchPypi {
inherit pname version;
sha256 = "a9e5e8d7ab9d5b0747f37740276eb362e6a76275d76cebbb52c6049d93b475db";
};
pytest_37 = generic {
version = "3.7.4";
sha256 = "2d7c49e931316cc7d1638a3e5f54f5d7b4e5225972b3c9838f3584788d27f349";
checkInputs = [ hypothesis mock ];
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ attrs py setuptools six pluggy more-itertools atomicwrites]
++ stdenv.lib.optionals (!isPy3k) [ funcsigs ]
++ stdenv.lib.optionals (pythonOlder "3.6") [ pathlib2 ];
checkPhase = ''
runHook preCheck
$out/bin/py.test -x testing/
runHook postCheck
'';
# Remove .pytest_cache when using py.test in a Nix build
setupHook = writeText "pytest-hook" ''
pytestcachePhase() {
find $out -name .pytest_cache -type d -exec rm -rf {} +
}
preDistPhases+=" pytestcachePhase"
'';
meta = with stdenv.lib; {
homepage = https://docs.pytest.org;
description = "Framework for writing tests";
maintainers = with maintainers; [ domenkozar lovek323 madjar lsix ];
license = licenses.mit;
platforms = platforms.unix;
};
}
@@ -1,17 +1,14 @@
{ stdenv, buildPythonPackage, fetchPypi, gnupg1 }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "python-gnupg";
version = "0.4.3";
version = "0.4.4";
src = fetchPypi {
inherit pname version;
sha256 = "2d158dfc6b54927752b945ebe57e6a0c45da27747fa3b9ae66eccc0d2147ac0d";
sha256 = "45daf020b370bda13a1429c859fcdff0b766c0576844211446f9266cae97fb0e";
};
propagatedBuildInputs = [ gnupg1 ];
# Let's make the library default to our gpg binary
patchPhase = ''
substituteInPlace gnupg.py \
@@ -1,29 +1,23 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:
{ lib, buildPythonPackage, fetchPypi, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:
buildPythonPackage rec {
pname = "python-utils";
version = "2.3.0";
name = pname + "-" + version;
src = fetchFromGitHub {
owner = "WoLpH";
repo = "python-utils";
rev = "v${version}";
sha256 = "14gyphcqwa77wfbnrzj363v3fdkxy08378lgd7l3jqnpvr8pfp5c";
src = fetchPypi {
inherit pname version;
sha256 = "34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3";
};
postPatch = ''
rm -r tests/__pycache__
rm tests/*.pyc
'';
checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];
postPatch = ''
# pytest-runner is only actually required in checkPhase
substituteInPlace setup.py --replace "setup_requires=['pytest-runner']," ""
'';
# Tests failing
doCheck = false;
checkPhase = ''
py.test
py.test tests
'';
propagatedBuildInputs = [ six ];
@@ -0,0 +1,21 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
version = "0.5.15";
pname = "python-vagrant";
src = fetchPypi {
inherit pname version;
sha256 = "1ikrh6canhcxg5y7pzmkcnnydikppv7s6sm9prfx90nk0ac8m6mg";
};
# The tests try to connect to qemu
doCheck = false;
meta = {
description = "Python module that provides a thin wrapper around the vagrant command line executable";
homepage = https://github.com/todddeluca/python-vagrant;
license = lib.licenses.mit;
maintainers = [ lib.maintainers.pmiddend ];
};
}
@@ -0,0 +1,35 @@
{ stdenv, lib, fetchFromGitHub, buildPythonPackage,
six, mock, pyfakefs, unittest2, pytest
}:
buildPythonPackage rec {
pname = "pyu2f";
version = "0.1.4";
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = version;
sha256 = "0waxdydvxn05a8ab9j235mz72x7p4pwa59pnxyk1zzbwxnpxb3p9";
};
# Platform detection for linux fails
postPatch = lib.optionalString stdenv.isLinux ''
rm pyu2f/tests/hid/macos_test.py
'';
propagatedBuildInputs = [ six ];
checkInputs = [ pytest six mock pyfakefs unittest2 ];
checkPhase = ''
pytest pyu2f/tests
'';
meta = with lib; {
description = "U2F host library for interacting with a U2F device over USB";
homepage = https://github.com/google/pyu2f/;
license = licenses.asl20;
maintainers = with maintainers; [ prusnak ];
};
}
@@ -5,7 +5,6 @@
, setuptoolsTrial
, simplejson
, zbase32
, argparse
, twisted
, isPyPy
}:
@@ -20,7 +19,7 @@ buildPythonPackage rec {
};
buildInputs = [ setuptoolsDarcs setuptoolsTrial ] ++ (if doCheck then [ simplejson ] else []);
propagatedBuildInputs = [ argparse twisted ];
propagatedBuildInputs = [ twisted ];
# Tests fail because they try to write new code into the twisted
# package, apparently some kind of plugin.
@@ -1,10 +1,10 @@
{ lib, python3Packages, imagemagick, feh }:
{ lib, buildPythonPackage, fetchPypi, imagemagick, feh, isPy3k }:
python3Packages.buildPythonApplication rec {
buildPythonPackage rec {
pname = "pywal";
version = "3.2.1";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "1pj30h19ijwhmbm941yzbkgr19q06dhp9492h9nrqw1wfjfdbdic";
};
@@ -19,6 +19,9 @@ python3Packages.buildPythonApplication rec {
./feh.patch
];
# Invalid syntax
disabled = !isPy3k;
postPatch = ''
substituteInPlace pywal/backends/wal.py --subst-var-by convert "${imagemagick}/bin/convert"
substituteInPlace pywal/wallpaper.py --subst-var-by feh "${feh}/bin/feh"
@@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, qscintillaCpp
, lndir
, sip
, python
, pyqt5 }:
buildPythonPackage rec {
pname = "qscintilla";
version = qscintillaCpp.version;
src = qscintillaCpp.src;
format = "other";
nativeBuildInputs = [ lndir sip ];
buildInputs = [ qscintillaCpp ];
propagatedBuildInputs = [ pyqt5 ];
preConfigure = ''
mkdir -p $out
lndir ${pyqt5} $out
rm -rf "$out/nix-support"
cd Python
${python.executable} ./configure.py \
--pyqt=PyQt5 \
--destdir=$out/lib/${python.sitePackages}/PyQt5 \
--stubsdir=$out/lib/${python.sitePackages}/PyQt5 \
--apidir=$out/api/${python.libPrefix} \
--qsci-incdir=${qscintillaCpp}/include \
--qsci-libdir=${qscintillaCpp}/lib \
--pyqt-sipdir=${pyqt5}/share/sip/PyQt5 \
--qsci-sipdir=$out/share/sip/PyQt5
'';
meta = with lib; {
description = "A Python binding to QScintilla, Qt based text editing control";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ lsix ];
homepage = https://www.riverbankcomputing.com/software/qscintilla/;
};
}
@@ -1,11 +1,11 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, pillow, argparse, pyres, nose
{ stdenv, buildPythonPackage, fetchFromGitHub, pillow, pyres, nose
, preggy, numpy, yanc, nose-focus, mock, opencv }:
buildPythonPackage rec {
pname = "remotecv";
version = "2.2.2";
propagatedBuildInputs = [ pillow argparse pyres ];
propagatedBuildInputs = [ pillow pyres ];
checkInputs = [ nose preggy numpy yanc nose-focus mock opencv ];
@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "rlp";
version = "1.0.3";
version = "1.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "b0ad3f3173dedf416565299f684717d4ae7620207d562d3ef94b818a40a48781";
sha256 = "0742hdnhwcx1bm7pdk83290rxfcb0i2xskgl8yn6lg8fql1hms7b";
};
checkInputs = [ pytest hypothesis ];
@@ -1,4 +1,4 @@
{ stdenv, fetchPypi, buildPythonPackage, pyparsing, argparse, robotframework, allpairspy }:
{ stdenv, fetchPypi, buildPythonPackage, pyparsing, robotframework, allpairspy }:
buildPythonPackage rec {
pname = "RoboMachine";
@@ -9,7 +9,7 @@ buildPythonPackage rec {
sha256 = "242cfd9be0f7591138eaeba03c9c190f894ce045e1767ab7b90eca330259fc45";
};
propagatedBuildInputs = [ pyparsing argparse robotframework allpairspy ];
propagatedBuildInputs = [ pyparsing robotframework allpairspy ];
# Remove Windows .bat files
postInstall = ''
@@ -1,5 +1,6 @@
{ buildPythonPackage
, fetchgit
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, isPy27
, testfixtures
, unittest2
@@ -20,13 +21,14 @@
buildPythonPackage rec {
pname = "serversyncstorage";
version = "1.6.11";
version = "1.6.14";
disabled = !isPy27;
src = fetchgit {
url = https://github.com/mozilla-services/server-syncstorage.git;
rev = "refs/tags/${version}";
sha256 = "197gj2jfs2c6nzs20j37kqxwi91wabavxnfm4rqmrjwhgqjwhnm0";
src = fetchFromGitHub {
owner = "mozilla-services";
repo = "server-syncstorage";
rev = version;
sha256 = "08xclxj38rav8yay9cijiavv35jbyf6a9jzr24vgcna8pjjnbbmh";
};
checkInputs = [ testfixtures unittest2 webtest ];
@@ -35,7 +37,10 @@ buildPythonPackage rec {
pymysqlsa umemcache WSGIProxy requests pybrowserid
];
meta = {
broken = true; # 2018-11-04
meta = with stdenv.lib; {
description = "The SyncServer server software, as used by Firefox Sync";
homepage = https://github.com/mozilla-services/server-syncstorage;
license = licenses.mpl20;
maintainers = with maintainers; [ nadrieril ];
};
}
@@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, sphinx
}:
buildPythonPackage rec {
pname = "sphinx-argparse";
version = "0.2.5";
src = fetchPypi {
inherit pname version;
sha256 = "05wc8f5hb3jsg2vh2jf7jsyan8d4i09ifrz2c8fp6f7x1zw9iav0";
};
checkInputs = [
pytest
];
checkPhase = "py.test";
propagatedBuildInputs = [
sphinx
];
meta = {
description = "A sphinx extension that automatically documents argparse commands and options";
homepage = https://github.com/ribozz/sphinx-argparse;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ clacke ];
};
}
@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, pbr, six, argparse }:
{ stdenv, buildPythonPackage, fetchPypi, pbr, six }:
buildPythonPackage rec {
pname = "stevedore";
@@ -11,7 +11,7 @@ buildPythonPackage rec {
doCheck = false;
propagatedBuildInputs = [ pbr six argparse ];
propagatedBuildInputs = [ pbr six ];
meta = with stdenv.lib; {
description = "Manage dynamic plugins for Python applications";
@@ -1,33 +0,0 @@
{ buildPythonPackage
, fetchgit
, isPy27
, unittest2
, cornice
, gunicorn
, pyramid
, requests
, simplejson
, sqlalchemy
, mozsvc
, tokenserver
, serversyncstorage
, configparser
}:
buildPythonPackage rec {
pname = "syncserver";
version = "1.6.0";
disabled = ! isPy27;
src = fetchgit {
url = https://github.com/mozilla-services/syncserver.git;
rev = "refs/tags/${version}";
sha256 = "1fsiwihgq3z5b5kmssxxil5g2abfvsf6wfikzyvi4sy8hnym77mb";
};
buildInputs = [ unittest2 ];
propagatedBuildInputs = [
cornice gunicorn pyramid requests simplejson sqlalchemy mozsvc tokenserver
serversyncstorage configparser
];
}
@@ -0,0 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "tableaudocumentapi";
version = "0.6";
src = fetchPypi {
inherit pname version;
sha256 = "fc6d44b62cf6ea29916c073686e2f9f35c9902eccd57b8493f8d44a59a2f60d9";
};
# tests not inclued with release
doCheck = false;
meta = with lib; {
description = "A Python module for working with Tableau files";
homepage = https://github.com/tableau/document-api-python;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}
@@ -0,0 +1,25 @@
{ lib, buildPythonPackage, fetchPypi, sqlalchemy, telethon }:
buildPythonPackage rec {
pname = "telethon-session-sqlalchemy";
version = "0.2.5";
src = fetchPypi {
inherit pname version;
sha256 = "b392096b14e5cdc4040d3900cc2be7847b160ed77e5c861a6bd07d75d8e17a85";
};
propagatedBuildInputs = [
sqlalchemy
];
# No tests available
doCheck = false;
meta = with lib; {
homepage = https://github.com/tulir/telethon-session-sqlalchemy;
description = "SQLAlchemy backend for Telethon session storage";
license = licenses.mit;
maintainers = with maintainers; [ nyanloutre ];
};
}
@@ -0,0 +1,30 @@
{ lib, buildPythonPackage, fetchPypi, async_generator, rsa, pyaes, pythonOlder }:
buildPythonPackage rec {
pname = "telethon";
version = "1.5.4";
src = fetchPypi {
inherit version;
pname = "Telethon";
sha256 = "52cb4929bf37c98ab5f3e173325dbb3cb9c1ca3f4fe6ba87d35c43e2f98858ce";
};
propagatedBuildInputs = [
async_generator
rsa
pyaes
];
# No tests available
doCheck = false;
disabled = pythonOlder "3.5";
meta = with lib; {
homepage = https://github.com/LonamiWebs/Telethon;
description = "Full-featured Telegram client library for Python 3";
license = licenses.mit;
maintainers = with maintainers; [ nyanloutre ];
};
}
@@ -52,6 +52,11 @@ buildPythonPackage rec {
unidecode
];
postPatch = ''
substituteInPlace setup.py \
--replace "'ftfy>=4.2.0,<5.0.0'," "'ftfy>=5.0.0',"
'';
doCheck = false; # tests want to download data files
meta = with stdenv.lib; {
@@ -5,11 +5,11 @@
buildPythonPackage rec {
pname = "texttable";
version = "1.5.0";
version = "1.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "0mzv6zs8ciwnf83fwikqmmjwbzqmdja3imn4b4k209f80g0rk8qv";
sha256 = "1z3xbijvhh86adg0jk5iv1jvga7cg25q1w12icb3snr5jim9sjv2";
};
meta = {
@@ -31,5 +31,6 @@ buildPythonPackage rec {
description = "The Mozilla Token Server";
homepage = https://github.com/mozilla-services/tokenserver;
license = licenses.mpl20;
maintainers = with maintainers; [ nadrieril ];
};
}
@@ -1,27 +1,48 @@
{ lib, fetchPypi, buildPythonPackage,
protobuf, hidapi, ecdsa, mnemonic, requests, pyblake2, click, libusb1, rlp, isPy3k
{ lib, fetchPypi, buildPythonPackage, isPy3k, python, pytest
, typing-extensions
, protobuf
, hidapi
, ecdsa
, mnemonic
, requests
, pyblake2
, click
, construct
, libusb1
, rlp
}:
buildPythonPackage rec {
pname = "trezor";
version = "0.10.2";
version = "0.11.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "4dba4d5c53d3ca22884d79fb4aa68905fb8353a5da5f96c734645d8cf537138d";
sha256 = "6043f321d856e1b45b9df0c37810264f08d065bb56cd999f61a05fe2906e9e18";
};
propagatedBuildInputs = [ protobuf hidapi ecdsa mnemonic requests pyblake2 click libusb1 rlp ];
propagatedBuildInputs = [ typing-extensions protobuf hidapi ecdsa mnemonic requests pyblake2 click construct libusb1 rlp ];
# There are no actual tests: "ImportError: No module named tests"
doCheck = false;
# build requires UTF-8 locale
LANG = "en_US.UTF-8";
checkInputs = [
pytest
];
# disable test_tx_api.py as it requires being online
checkPhase = ''
runHook preCheck
${python.interpreter} -m pytest --pyarg trezorlib.tests.unit_tests --ignore trezorlib/tests/unit_tests/test_tx_api.py
runHook postCheck
'';
meta = {
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
homepage = https://github.com/trezor/python-trezor;
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ np ];
maintainers = with lib.maintainers; [ np prusnak ];
};
}
@@ -3,13 +3,13 @@
buildPythonPackage rec {
pname = "twilio";
version = "6.23.0";
version = "6.23.1";
# tests not included in PyPi, so fetch from github instead
src = fetchFromGitHub {
owner = "twilio";
repo = "twilio-python";
rev = version;
sha256 = "07fb8sklj8527aa8hi71w4iibgmcnndmnqjdcp82ff80ladn9i5y";
sha256 = "0f6r2qcgcg4pnnsgf9d1k03ri7h7k8kpasp9mdgv421a4rvqh8lm";
};
buildInputs = [ nose mock ];

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