Merge branch 'master' into bump-behave-version
This commit is contained in:
@@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||
|
||||
meta = {
|
||||
description = "MaxMind GeoIP Legacy Database - Python API";
|
||||
homepage = http://www.maxmind.com/;
|
||||
homepage = https://www.maxmind.com/;
|
||||
maintainers = with lib.maintainers; [ jluttine ];
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
};
|
||||
|
||||
24
pkgs/development/python-modules/IPy/default.nix
Normal file
24
pkgs/development/python-modules/IPy/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "IPy";
|
||||
version = "0.83";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "61da5a532b159b387176f6eabf11946e7458b6df8fb8b91ff1d345ca7a6edab8";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests -e fuzz
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Class and tools for handling of IPv4 and IPv6 addresses and networks";
|
||||
homepage = "https://github.com/autocracy/python-ipy";
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ y0no ];
|
||||
};
|
||||
}
|
||||
@@ -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 ];
|
||||
|
||||
49
pkgs/development/python-modules/WSME/default.nix
Normal file
49
pkgs/development/python-modules/WSME/default.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
||||
, pbr, six, simplegeneric, netaddr, pytz, webob
|
||||
, cornice, nose, webtest, pecan, transaction, cherrypy, sphinx
|
||||
, flask, flask-restful, suds-jurko, glibcLocales }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "WSME";
|
||||
version = "0.9.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e790ac755a7e36eaa796d3966d3878677896dbc7d1c2685cb85c06b744c21976";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# remove turbogears tests as we don't have it packaged
|
||||
rm tests/test_tg*
|
||||
# WSME seems incompatible with recent SQLAlchemy version
|
||||
rm wsmeext/tests/test_sqlalchemy*
|
||||
# https://bugs.launchpad.net/wsme/+bug/1510823
|
||||
${if isPy3k then "rm tests/test_cornice.py" else ""}
|
||||
'';
|
||||
|
||||
checkPhae = ''
|
||||
nosetests --exclude test_buildhtml \
|
||||
--exlcude test_custom_clientside_error \
|
||||
--exclude test_custom_non_http_clientside_error
|
||||
'';
|
||||
|
||||
# UnicodeEncodeError, ImportError, ...
|
||||
doCheck = !isPy3k;
|
||||
|
||||
nativeBuildInputs = [ pbr ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six simplegeneric netaddr pytz webob
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
cornice nose webtest pecan transaction cherrypy sphinx
|
||||
flask flask-restful suds-jurko glibcLocales
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simplify the writing of REST APIs, and extend them with additional protocols";
|
||||
homepage = http://git.openstack.org/cgit/openstack/wsme;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
@@ -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 ];
|
||||
|
||||
@@ -1,6 +1,18 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, certbot, nose, cryptography, pyasn1, pyopenssl, pyRFC3339
|
||||
, pytz, requests, six, werkzeug, mock, ndg-httpsclient }:
|
||||
, certbot
|
||||
, nose
|
||||
, cryptography
|
||||
, pyasn1
|
||||
, pyopenssl
|
||||
, pyRFC3339
|
||||
, josepy
|
||||
, pytz
|
||||
, requests
|
||||
, six
|
||||
, werkzeug
|
||||
, mock
|
||||
, ndg-httpsclient
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
inherit (certbot) src version;
|
||||
@@ -10,10 +22,10 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography pyasn1 pyopenssl pyRFC3339 pytz requests six werkzeug mock
|
||||
ndg-httpsclient
|
||||
ndg-httpsclient josepy
|
||||
];
|
||||
|
||||
buildInputs = [ nose ];
|
||||
checkInputs = [ nose ];
|
||||
|
||||
postUnpack = "sourceRoot=\${sourceRoot}/acme";
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
26
pkgs/development/python-modules/aiohttp-jinja2/default.nix
Normal file
26
pkgs/development/python-modules/aiohttp-jinja2/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -1,20 +1,24 @@
|
||||
{lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder, typing, aiohttp }:
|
||||
{ lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder
|
||||
, typing, aiohttp
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp-cors";
|
||||
version = "0.6.0";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1r0mb4dw0dc1lpi54dk5vxqs06nyhvagp76lyrvk7rd94z5mjkd4";
|
||||
sha256 = "0pczn54bqd32v8zhfbjfybiza6xh1szwxy6as577dn8g23bwcfad";
|
||||
};
|
||||
|
||||
# Requires network access
|
||||
doCheck = false;
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
propagatedBuildInputs = [ aiohttp ]
|
||||
++ lib.optional (pythonOlder "3.5") typing;
|
||||
|
||||
# Requires network access
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "CORS support for aiohttp";
|
||||
homepage = "https://github.com/aio-libs/aiohttp-cors";
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp";
|
||||
version = "3.0.1";
|
||||
version = "3.0.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "7aee5c0750584946fde40da70f0b28fe769f85182f1171acef18a35fd8ecd221";
|
||||
sha256 = "281a9fa56b5ce587a2147ec285d18a224942f7e020581afa6cc44d7caecf937b";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.4";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
checkInputs = [ pytest gunicorn pytest-mock ];
|
||||
|
||||
|
||||
21
pkgs/development/python-modules/ajpy/default.nix
Normal file
21
pkgs/development/python-modules/ajpy/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ajpy";
|
||||
version = "0.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "740e7daf728ba58dabaf4af2c4305262eb207a6e41791424a146a21396ceb9ad";
|
||||
};
|
||||
|
||||
# ajpy doesn't have tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "AJP package crafting library";
|
||||
homepage = "https://github.com/hypn0s/AJPy/";
|
||||
license = licenses.lgpl2;
|
||||
maintainers = with maintainers; [ y0no ];
|
||||
};
|
||||
}
|
||||
25
pkgs/development/python-modules/allpairspy/default.nix
Normal file
25
pkgs/development/python-modules/allpairspy/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, six, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "allpairspy";
|
||||
version = "2.4.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9fb7962ee523bd96c5098cd3c97ac1b8eb73021d3df9314657ee9de00f52e034";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pairwise test combinations generator";
|
||||
homepage = https://github.com/thombashi/allpairspy;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
66
pkgs/development/python-modules/alot/default.nix
Normal file
66
pkgs/development/python-modules/alot/default.nix
Normal file
@@ -0,0 +1,66 @@
|
||||
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
||||
, notmuch, urwid, urwidtrees, twisted, python_magic, configobj, mock, file, gpgme
|
||||
, service-identity
|
||||
, gnupg ? null, sphinx, awk ? null, procps ? null, future ? null
|
||||
, withManpage ? false }:
|
||||
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "alot";
|
||||
version = "0.7";
|
||||
outputs = [ "out" ] ++ lib.optional withManpage "man";
|
||||
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pazz";
|
||||
repo = "alot";
|
||||
rev = "${version}";
|
||||
sha256 = "1y932smng7qx7ybmqw4qh75b0lv9imfs5ak9fd0qhysij8kpmdhi";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace alot/defaults/alot.rc.spec \
|
||||
--replace "themes_dir = string(default=None)" \
|
||||
"themes_dir = string(default='$out/share/themes')"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = lib.optional withManpage sphinx;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
notmuch
|
||||
urwid
|
||||
urwidtrees
|
||||
twisted
|
||||
python_magic
|
||||
configobj
|
||||
service-identity
|
||||
file
|
||||
gpgme
|
||||
];
|
||||
|
||||
# some twisted tests need the network (test_env_set... )
|
||||
doCheck = false;
|
||||
postBuild = lib.optionalString withManpage "make -C docs man";
|
||||
|
||||
checkInputs = [ awk future mock gnupg procps ];
|
||||
|
||||
postInstall = lib.optionalString withManpage ''
|
||||
mkdir -p $out/man
|
||||
cp -r docs/build/man $out/man
|
||||
''
|
||||
+ ''
|
||||
mkdir -p $out/share/applications
|
||||
cp -r extra/themes $out/share
|
||||
|
||||
sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/pazz/alot;
|
||||
description = "Terminal MUA using notmuch mail";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ garbas ];
|
||||
};
|
||||
}
|
||||
@@ -1,17 +1,20 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pytest, vega, pandas, ipython, traitlets }:
|
||||
, pytest, glibcLocales, vega, pandas, ipython, traitlets }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "altair";
|
||||
version = "1.2.1";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c1303f77f1ba4d632f2958c83c0f457b2b969860b1ac9adfb872aefa1780baa7";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
postPatch = ''
|
||||
sed -i "s/vega==/vega>=/g" setup.py
|
||||
'';
|
||||
|
||||
checkInputs = [ pytest glibcLocales ];
|
||||
|
||||
checkPhase = ''
|
||||
export LANG=en_US.UTF-8
|
||||
@@ -19,8 +22,6 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ vega pandas ipython traitlets ];
|
||||
# Disabling checks, MockRequest object has no method send()
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A declarative statistical visualization library for Python.";
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{ stdenv, fetchurl, buildPythonPackage, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "4.7.1";
|
||||
name = "antlr4-python3-runtime-${version}";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/a/antlr4-python3-runtime/${name}.tar.gz";
|
||||
sha256 = "1lrzmagawmavyw1n1z0qarvs2jmbnbv0p89dah8g7klj8hnbf9hv";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Runtime for ANTLR";
|
||||
homepage = "http://www.antlr.org/";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
};
|
||||
}
|
||||
21
pkgs/development/python-modules/anyjson/default.nix
Normal file
21
pkgs/development/python-modules/anyjson/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "anyjson";
|
||||
version = "0.3.3";
|
||||
|
||||
# The tests are written in a python2 syntax but anyjson is python3 valid
|
||||
doCheck = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "37812d863c9ad3e35c0734c42e0bf0320ce8c3bed82cd20ad54cb34d158157ba";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
|
||||
meta = {
|
||||
homepage = https://pypi.python.org/pypi/anyjson/;
|
||||
description = "Wrapper that selects the best available JSON implementation";
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ lib, buildPythonPackage, fetchPypi,
|
||||
pytest, requests, requests_oauthlib, six
|
||||
{ lib, buildPythonPackage, pytest, requests, requests_oauthlib, six
|
||||
, fetchFromGitHub, responses, stdenv
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -7,18 +7,14 @@ buildPythonPackage rec {
|
||||
version = "0.7.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
meta = {
|
||||
description = "Python client library for Asana";
|
||||
homepage = https://github.com/asana/python-asana;
|
||||
license = lib.licenses.mit;
|
||||
src = fetchFromGitHub {
|
||||
owner = "asana";
|
||||
repo = "python-asana";
|
||||
rev = "v${version}";
|
||||
sha256 = "0786y3wxqxxhsb0kkpx4bfzif3dhvv3dmm6vnq58iyj94862kpxf";
|
||||
};
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a7ff4a78529257a5412e78cafd6b3025523364c0ab628d579f2771dd66b254bc";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkInputs = [ pytest responses ];
|
||||
propagatedBuildInputs = [ requests requests_oauthlib six ];
|
||||
|
||||
patchPhase = ''
|
||||
@@ -27,11 +23,13 @@ buildPythonPackage rec {
|
||||
sed -i "s/requests_oauthlib~=0.6.1/requests_oauthlib >=0.6.1/" setup.py
|
||||
'';
|
||||
|
||||
# ERROR: file not found: tests
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python client library for Asana";
|
||||
homepage = https://github.com/asana/python-asana;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
{ stdenv, buildPythonPackage, fetchurl,
|
||||
asgiref, msgpack, posix_ipc
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
version = "1.4.2";
|
||||
pname = "asgi_ipc";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/a/asgi_ipc/${name}.tar.gz";
|
||||
sha256 = "2403f41184405791b05e7aee570bd6ccd47e2d91845d78fe17adcf58ef48c037";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ asgiref msgpack posix_ipc ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Posix IPC-backed ASGI channel layer implementation";
|
||||
license = licenses.bsd3;
|
||||
homepage = https://github.com/django/asgi_ipc/;
|
||||
};
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi,
|
||||
asgiref, asgi_ipc, msgpack, six, redis, cryptography
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
version = "1.4.3";
|
||||
pname = "asgi_redis";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "10xk7k7mcd28nb3v93mc8xa7sa6p02jnbl8idk6scr6p75jaixzi";
|
||||
};
|
||||
|
||||
# Requires a redis server available
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ asgiref asgi_ipc msgpack six redis cryptography ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Redis-backed ASGI channel layer implementation";
|
||||
license = licenses.bsd3;
|
||||
homepage = https://github.com/django/asgi_redis/;
|
||||
};
|
||||
}
|
||||
@@ -1,15 +1,23 @@
|
||||
{ stdenv, buildPythonPackage, fetchurl, six }:
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
|
||||
buildPythonPackage rec {
|
||||
version = "2.1.5";
|
||||
version = "2.2.0";
|
||||
pname = "asgiref";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/a/asgiref/${name}.tar.gz";
|
||||
sha256 = "1a46196df28c67e046a54cc537ce5a8f6a59eb68649f54680d7e4fc3b113ab1b";
|
||||
# PyPI tarball doesn't include tests directory
|
||||
src = fetchFromGitHub {
|
||||
owner = "django";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0jsdkgwzswm1jbfm6d100yfvfzpic8v6ysydcnn798bbpwclj8ip";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
propagatedBuildInputs = [ async-timeout ];
|
||||
|
||||
checkInputs = [ pytest pytest-asyncio ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Reference ASGI adapters and channel layers";
|
||||
|
||||
@@ -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; {
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, numpy
|
||||
, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
pname = "astropy";
|
||||
version = "3.0";
|
||||
|
||||
name = "${pname}-${version}";
|
||||
disabled = !isPy3k; # according to setup.py
|
||||
|
||||
doCheck = false; #Some tests are failing. More importantly setup.py hangs on completion. Needs fixing with a proper shellhook.
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9e0ad19b9d6d227bdf0932bbe64a8c5dd4a47d4ec078586cf24bf9f0c61d9ecf";
|
||||
@@ -18,7 +20,6 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ pytest numpy ]; # yes it really has pytest in install_requires
|
||||
|
||||
|
||||
meta = {
|
||||
description = "Astronomy/Astrophysics library for Python";
|
||||
homepage = http://www.astropy.org;
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
@@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "WebSocket and WAMP in Python for Twisted and asyncio.";
|
||||
homepage = "http://crossbar.io/autobahn";
|
||||
homepage = "https://crossbar.io/autobahn";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ nand0p ];
|
||||
platforms = platforms.all;
|
||||
|
||||
@@ -1,23 +1,28 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, buildPythonPackage, fetchFromGitHub
|
||||
, future, pyparsing
|
||||
, glibcLocales, nose
|
||||
}:
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ future pyparsing ];
|
||||
|
||||
# No tests in archive
|
||||
doCheck = false;
|
||||
checkInputs = [ nose glibcLocales ];
|
||||
|
||||
checkPhase = ''
|
||||
LC_ALL="en_US.UTF-8" nosetests
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Bibtex parser for python 2.7 and 3.3 and newer";
|
||||
|
||||
27
pkgs/development/python-modules/binaryornot/default.nix
Normal file
27
pkgs/development/python-modules/binaryornot/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
@@ -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 ];
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bleach";
|
||||
version = "2.1.2";
|
||||
version = "2.1.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "38fc8cbebea4e787d8db55d6f324820c7f74362b70db9142c1ac7920452d1a19";
|
||||
sha256 = "eb7386f632349d10d9ce9d4a838b134d4731571851149f9cc2c05a9a837a9a44";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pytestrunner ];
|
||||
@@ -41,4 +41,4 @@ buildPythonPackage rec {
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ prikhi ];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
31
pkgs/development/python-modules/blinkstick/default.nix
Normal file
31
pkgs/development/python-modules/blinkstick/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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!
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; {
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, iana-etc, libredirect,
|
||||
pytest, case, kombu, billiard, pytz, anyjson, amqp, eventlet
|
||||
}:
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "celery";
|
||||
version = "4.1.0";
|
||||
@@ -11,11 +12,11 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
|
||||
preCheck = ''
|
||||
preCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
||||
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols \
|
||||
LD_PRELOAD=${libredirect}/lib/libredirect.so
|
||||
'';
|
||||
postCheck = ''
|
||||
postCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
||||
unset NIX_REDIRECTS LD_PRELOAD
|
||||
'';
|
||||
|
||||
|
||||
@@ -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" ];
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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/;
|
||||
|
||||
21
pkgs/development/python-modules/colander/default.nix
Normal file
21
pkgs/development/python-modules/colander/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, translationstring, iso8601 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "colander";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e20e9acf190e5711cf96aa65a5405dac04b6e841028fc361d953a9923dbc4e72";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ translationstring iso8601 ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple schema-based serialization and deserialization library";
|
||||
homepage = https://docs.pylonsproject.org/projects/colander/en/latest/;
|
||||
license = licenses.free; # http://repoze.org/LICENSE.txt
|
||||
maintainers = with maintainers; [ garbas domenkozar ];
|
||||
};
|
||||
}
|
||||
27
pkgs/development/python-modules/commonmark/default.nix
Normal file
27
pkgs/development/python-modules/commonmark/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, future }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "CommonMark";
|
||||
version = "0.7.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "4dfbbd1dbc669a9b71a015032b2bbe5c4b019ca8b6ca410d89cf7020de46d2c0";
|
||||
};
|
||||
|
||||
preCheck = ''
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
'';
|
||||
|
||||
# UnicodeEncodeError on Python 2
|
||||
doCheck = isPy3k;
|
||||
|
||||
checkInputs = [ glibcLocales ];
|
||||
propagatedBuildInputs = [ future ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python parser for the CommonMark Markdown spec";
|
||||
homepage = https://github.com/rolandshoemaker/CommonMark-py;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, six, pythonOlder }:
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, six, pytest, pythonOlder }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "construct";
|
||||
@@ -14,15 +14,16 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
# Tests fail with the following error on Python 3.5+
|
||||
# TypeError: not all arguments converted during string formatting
|
||||
doCheck = pythonOlder "3.5";
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test -k 'not test_numpy' tests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Powerful declarative parser (and builder) for binary data";
|
||||
homepage = http://construct.readthedocs.org/;
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ bjornfor ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -1,15 +1,20 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, cryptography, boto3, pyyaml, docutils }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, cryptography, boto3, pyyaml, docutils }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "credstash";
|
||||
pname = "credstash";
|
||||
version = "1.14.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "718b337f7a6fa001e014386071f05c59900525d0507009126d2fe8d75fe0761d";
|
||||
};
|
||||
|
||||
patches = fetchpatch {
|
||||
url = https://github.com/fugue/credstash/pull/178.patch;
|
||||
sha256 = "15ih4h5v63g7qfmqdl4zca147wkcrx8vnsh4ns33001dipcfb5sc";
|
||||
excludes = [ ".travis.yml" ];
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cryptography boto3 pyyaml docutils ];
|
||||
|
||||
# No tests in archive
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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; {
|
||||
|
||||
25
pkgs/development/python-modules/cx_oracle/default.nix
Normal file
25
pkgs/development/python-modules/cx_oracle/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, oracle-instantclient }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cx_Oracle";
|
||||
version = "6.1";
|
||||
|
||||
buildInputs = [
|
||||
oracle-instantclient
|
||||
];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "80545fc7acbdda917dd2b1604c938141256bdfed3ad464a44586c9c2f09c3004";
|
||||
};
|
||||
|
||||
# Check need an Oracle database to run
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python interface to Oracle";
|
||||
homepage = "https://oracle.github.io/python-cx_Oracle";
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ y0no ];
|
||||
};
|
||||
}
|
||||
@@ -35,7 +35,7 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://github.com/pytoolz/cytoolz/";
|
||||
homepage = "https://github.com/pytoolz/cytoolz/";
|
||||
description = "Cython implementation of Toolz: High performance functional utilities";
|
||||
license = "licenses.bsd3";
|
||||
maintainers = with lib.maintainers; [ fridh ];
|
||||
|
||||
@@ -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.0.3";
|
||||
version = "2.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "bb2075ce35ca00f2e5440cc034dfebd5c00d346de62ea45f099db089b868c31f";
|
||||
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;
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
@@ -31,8 +31,10 @@ in buildPythonPackage rec {
|
||||
checkInputs = [ pytest mock ];
|
||||
propagatedBuildInputs = [ numpy multipledispatch dateutil ];
|
||||
|
||||
# Disable several tests
|
||||
# https://github.com/blaze/datashape/issues/232
|
||||
checkPhase = ''
|
||||
py.test datashape/tests
|
||||
py.test -k "not test_validate and not test_nested_iteratables and not test_validate_dicts and not test_tuples_can_be_records_too" datashape/tests
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -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";
|
||||
|
||||
41
pkgs/development/python-modules/deform/default.nix
Normal file
41
pkgs/development/python-modules/deform/default.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, chameleon, colander, iso8601, peppercorn, translationstring, zope_deprecation
|
||||
, nose, coverage, beautifulsoup4, flaky }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "deform";
|
||||
version = "2.0.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "874d3346a02c500432efdcc73b1a7174aa0ea69cd52a99bb9a812967f54f6f79";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "iso8601<=0.1.11" iso8601
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
chameleon
|
||||
colander
|
||||
iso8601
|
||||
peppercorn
|
||||
translationstring
|
||||
zope_deprecation
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
nose
|
||||
coverage
|
||||
beautifulsoup4
|
||||
flaky
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Form library with advanced features like nested forms";
|
||||
homepage = https://docs.pylonsproject.org/projects/deform/en/latest/;
|
||||
license = licenses.free; # http://www.repoze.org/LICENSE.txt
|
||||
maintainers = with maintainers; [ garbas domenkozar ];
|
||||
};
|
||||
}
|
||||
21
pkgs/development/python-modules/deluge-client/default.nix
Normal file
21
pkgs/development/python-modules/deluge-client/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, jinja2, jinja2_pluralize, pygments,
|
||||
six, inflect, mock, nose, coverage, pycodestyle, flake8, pyflakes, git,
|
||||
pylint, pydocstyle, fetchpatch }:
|
||||
pylint, pydocstyle, fetchpatch, glibcLocales }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "diff_cover";
|
||||
@@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ jinja2 jinja2_pluralize pygments six inflect ];
|
||||
|
||||
checkInputs = [ mock nose coverage pycodestyle flake8 pyflakes pylint pydocstyle git ];
|
||||
checkInputs = [ mock nose coverage pycodestyle flake8 pyflakes pylint pydocstyle git glibcLocales ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Automatically find diff lines that need test coverage";
|
||||
|
||||
@@ -10,15 +10,17 @@ buildPythonPackage rec {
|
||||
sha256 = "78a3bf6c8377fdbe3d85e914a209ff97aa43e35605779639847b510ced31f7b9";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace discid/libdiscid.py \
|
||||
--replace '_open_library(_LIB_NAME)' "_open_library('${libdiscid}/lib/libdiscid.so.0')"
|
||||
'';
|
||||
patchPhase =
|
||||
let extension = stdenv.hostPlatform.extensions.sharedLibrary; in
|
||||
''
|
||||
substituteInPlace discid/libdiscid.py \
|
||||
--replace "_open_library(_LIB_NAME)" \
|
||||
"_open_library('${libdiscid}/lib/libdiscid${extension}')"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python binding of libdiscid";
|
||||
homepage = "https://python-discid.readthedocs.org/";
|
||||
license = licenses.lgpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, pytest, pytestcov, tox }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "distro";
|
||||
version = "1.2.0";
|
||||
|
||||
|
||||
20
pkgs/development/python-modules/dj-database-url/default.nix
Normal file
20
pkgs/development/python-modules/dj-database-url/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
36
pkgs/development/python-modules/django-pipeline/default.nix
Normal file
36
pkgs/development/python-modules/django-pipeline/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
||||
, django, futures, mock, jinja2, jsmin, slimit }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-pipeline";
|
||||
version = "1.6.14";
|
||||
|
||||
# no tests on PyPI
|
||||
src = fetchFromGitHub {
|
||||
owner = "jazzband";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1xf732bd17mgha75jfhlnms46ib2pffhpfa0ca7bmng9jhbvsl9j";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace tests/tests/test_compiler.py \
|
||||
--replace "/usr/bin/env" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ django ] ++ lib.optional (!isPy3k) futures;
|
||||
|
||||
checkInputs = [ jinja2 jsmin slimit ] ++ lib.optional (!isPy3k) mock;
|
||||
|
||||
checkPhase = ''
|
||||
export PYTHONPATH=.:$PYTHONPATH
|
||||
export DJANGO_SETTINGS_MODULE=tests.settings
|
||||
${django}/bin/django-admin.py test tests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pipeline is an asset packaging library for Django";
|
||||
homepage = https://github.com/cyberdelia/django-pipeline;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
@@ -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 [
|
||||
|
||||
@@ -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";
|
||||
|
||||
33
pkgs/development/python-modules/face_recognition/default.nix
Normal file
33
pkgs/development/python-modules/face_recognition/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ buildPythonPackage, fetchFromGitHub, pillow, click, dlib, numpy
|
||||
, face_recognition_models, scipy, stdenv, flake8, tox, pytest, glibcLocales
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "face_recognition";
|
||||
version = "1.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = pname;
|
||||
owner = "ageitgey";
|
||||
rev = "fe421d4acd76e8a19098e942b7bd9c3bbef6ebc4"; # no tags available in Git, pure revs are pushed to pypi
|
||||
sha256 = "0wv5qxkg7xv1cr43zhhbixaqgj08xw2l7yvwl8g3fb2kdxyndw1c";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "flake8==2.6.0" "flake8"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ pillow click dlib numpy face_recognition_models scipy ];
|
||||
|
||||
checkInputs = [ flake8 tox pytest glibcLocales ];
|
||||
checkPhase = ''
|
||||
LC_ALL="en_US.UTF-8" py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
license = licenses.mit;
|
||||
homepage = https://github.com/ageitgey/face_recognition;
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
description = "The world's simplest facial recognition api for Python and the command line";
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{ buildPythonPackage, stdenv, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "face_recognition_models";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1kwnv3qpy5bhspk780bkyg8jd9n5f6p91ja6sjlwk1wcm00d56xp";
|
||||
};
|
||||
|
||||
# no module named `tests` as no tests are available
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/ageitgey/face_recognition_models;
|
||||
license = licenses.cc0;
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
description = "Trained models for the face_recognition python library";
|
||||
};
|
||||
}
|
||||
@@ -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; {
|
||||
|
||||
@@ -1,15 +1,24 @@
|
||||
{ lib, fetchurl, buildPythonPackage, flake8, nose }:
|
||||
{ lib, fetchPypi, buildPythonPackage, flake8, pycodestyle, pytestrunner, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flake8-debugger";
|
||||
name = "${pname}-${version}";
|
||||
version = "3.1.0";
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/f/flake8-debugger/${name}.tar.gz";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "be4fb88de3ee8f6dd5053a2d347e2c0a2b54bab6733a2280bb20ebd3c4ca1d97";
|
||||
};
|
||||
buildInputs = [ nose ];
|
||||
propagatedBuildInputs = [ flake8 ];
|
||||
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
|
||||
propagatedBuildInputs = [ flake8 pycodestyle ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
# Tests not included in PyPI tarball
|
||||
# FIXME: Remove when https://github.com/JBKahn/flake8-debugger/pull/15 is merged
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/jbkahn/flake8-debugger;
|
||||
description = "ipdb/pdb statement checker plugin for flake8";
|
||||
|
||||
@@ -12,7 +12,7 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [ flask webassets flask_script nose ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = http://github.com/miracle2k/flask-assets;
|
||||
homepage = https://github.com/miracle2k/flask-assets;
|
||||
description = "Asset management for Flask, to compress and merge CSS and Javascript files";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
{ 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;
|
||||
homepage = https://github.com/smurfix/flask-script;
|
||||
description = "Scripting support for Flask";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
, numpy
|
||||
, pytest
|
||||
, pytestrunner
|
||||
, glibcLocales
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fonttools";
|
||||
version = "3.22.0";
|
||||
name = "${pname}-${version}";
|
||||
version = "3.24.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "01640dfbc0ba752181b21fe74240b8a7bbf7af75581737245836ada5565bd549";
|
||||
sha256 = "d13e98c9f3b635a5334dab69eb471d7286928ac82db7ca57b5bf4cdf3824789a";
|
||||
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";
|
||||
|
||||
@@ -7,18 +7,23 @@
|
||||
, python
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "ftfy";
|
||||
# latest is 5.1.1, buy spaCy requires 4.4.3
|
||||
version = "5.3.0";
|
||||
|
||||
version = "4.4.3";
|
||||
# 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.
|
||||
# I propose to stick to v4 until another package requires v5.
|
||||
# At that point we can make a ftfy_v4 package.
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ba702d5138f9b35df32b55920c9466208608108f1f3d5de1a68c17e3d68cb7f";
|
||||
sha256 = "152xdb56rhs1q4r0ck1n557sbphw7zq18r75a7kkd159ckdnc01w";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ html5lib wcwidth];
|
||||
propagatedBuildInputs = [ html5lib wcwidth ];
|
||||
|
||||
checkInputs = [
|
||||
nose
|
||||
@@ -32,13 +37,10 @@ buildPythonPackage rec {
|
||||
# FileNotFoundError: [Errno 2] No such file or directory: 'ftfy'
|
||||
doCheck = false;
|
||||
|
||||
# "this version of ftfy is no longer written for Python 2"
|
||||
disabled = !isPy3k;
|
||||
|
||||
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;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ sdll ];
|
||||
};
|
||||
maintainers = with maintainers; [ sdll aborsu ];
|
||||
};
|
||||
}
|
||||
|
||||
27
pkgs/development/python-modules/ftputil/default.nix
Normal file
27
pkgs/development/python-modules/ftputil/default.nix
Normal 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"
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, google_auth, protobuf, googleapis_common_protos, requests, grpcio, setuptools, mock, pytest }:
|
||||
, google_auth, protobuf3_5, googleapis_common_protos, requests, grpcio, setuptools, mock, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-api-core";
|
||||
@@ -10,7 +10,7 @@ buildPythonPackage rec {
|
||||
sha256 = "0144d467083ed54d2e8ccb4212d42c3724fe0b844b7d3a0ff85aea54b7ae8347";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google_auth protobuf googleapis_common_protos requests grpcio ];
|
||||
propagatedBuildInputs = [ google_auth protobuf3_5 googleapis_common_protos requests grpcio ];
|
||||
checkInputs = [ setuptools mock pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
@@ -3,19 +3,18 @@
|
||||
|
||||
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 ];
|
||||
checkInputs = [ pytest mock ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
# needs credentials
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Cloud Speech API enables integration of Google speech recognition into applications.";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, google_auth, ply, protobuf, grpcio, requests, googleapis_common_protos, dill, future, pytest, mock, unittest2 }:
|
||||
, google_auth, ply, protobuf3_5, grpcio, requests
|
||||
, googleapis_common_protos, dill, future, pytest, mock, unittest2 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-gax";
|
||||
@@ -10,7 +11,7 @@ buildPythonPackage rec {
|
||||
sha256 = "0p1ribd2xy7a04wnjv12agkcdi6f9cpj838884hayx07p5g8v3ji";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google_auth ply protobuf grpcio requests googleapis_common_protos dill future ];
|
||||
propagatedBuildInputs = [ google_auth ply protobuf3_5 grpcio requests googleapis_common_protos dill future ];
|
||||
checkInputs = [ pytest mock unittest2 ];
|
||||
|
||||
# Importing test__grpc_google_auth fails with "ModuleNotFoundError: No module named 'google_auth_httplib2'", where
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, protobuf, pytest }:
|
||||
, protobuf3_5, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "googleapis-common-protos";
|
||||
@@ -10,7 +10,7 @@ buildPythonPackage rec {
|
||||
sha256 = "1whfjl44gy15ha6palpwa2m0xi36dsvpaz8vw0cvb2k2lbdfsxf0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ protobuf ];
|
||||
propagatedBuildInputs = [ protobuf3_5 ];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
doCheck = false; # there are no tests
|
||||
|
||||
20
pkgs/development/python-modules/gpapi/default.nix
Normal file
20
pkgs/development/python-modules/gpapi/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, requests, protobuf, pycryptodome }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.4.2";
|
||||
pname = "gpapi";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version pname;
|
||||
sha256 = "1fv2y3xbwn512fjxrdwgq6cz0xjd7mh54nq1f18wyz8w40vcznns";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests protobuf pycryptodome ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/NoMore201/googleplay-api;
|
||||
license = licenses.gpl3;
|
||||
description = "Google Play Unofficial Python API";
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
};
|
||||
}
|
||||
26
pkgs/development/python-modules/gplaycli/default.nix
Normal file
26
pkgs/development/python-modules/gplaycli/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ buildPythonPackage, stdenv, libffi, isPy3k, pyasn1, clint, ndg-httpsclient
|
||||
, protobuf, requests, args, gpapi, pyaxmlparser, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "3.21";
|
||||
name = "gplaycli-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matlink";
|
||||
repo = "gplaycli";
|
||||
rev = version;
|
||||
sha256 = "1r5nzi9yzswam0866gypjcvv3f1rw13jwx9s49chp8byxy1dyrs2";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = [ libffi pyasn1 clint ndg-httpsclient protobuf requests args gpapi pyaxmlparser ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/matlink/gplaycli;
|
||||
description = "Google Play Downloader via Command line";
|
||||
license = licenses.agpl3Plus;
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
};
|
||||
}
|
||||
@@ -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'"
|
||||
|
||||
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python module for manipulation and statistical analysis of graphs";
|
||||
homepage = http://graph-tool.skewed.de/;
|
||||
homepage = https://graph-tool.skewed.de/;
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ stdenv.lib.maintainers.joelmo ];
|
||||
|
||||
21
pkgs/development/python-modules/green/default.nix
Normal file
21
pkgs/development/python-modules/green/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, lib
|
||||
, six, protobuf, enum34, futures, isPy26, isPy27, isPy34 }:
|
||||
, six, protobuf3_5, enum34, futures, isPy26, isPy27, isPy34 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "grpcio";
|
||||
@@ -10,7 +10,7 @@ buildPythonPackage rec {
|
||||
sha256 = "e7c43b5619deff48cc177c1b0618c4beeb2797f910f160e3c2035d5baf790a5d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six protobuf ]
|
||||
propagatedBuildInputs = [ six protobuf3_5 ]
|
||||
++ lib.optionals (isPy26 || isPy27 || isPy34) [ enum34 ]
|
||||
++ lib.optionals (isPy26 || isPy27) [ futures ];
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
28
pkgs/development/python-modules/ha-ffmpeg/default.nix
Normal file
28
pkgs/development/python-modules/ha-ffmpeg/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -3,13 +3,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hbmqtt";
|
||||
version = "0.9.1";
|
||||
version = "0.9.2";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "04lqqcy84f9gcwqhrlvzp689r3mkdd8ipsnfzw8gryfny4lh8wrx";
|
||||
sha256 = "6f61e05007648a4f33e300fafcf42776ca95508ba1141799f94169427ce5018c";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ transitions websockets passlib docopt pyyaml ];
|
||||
|
||||
26
pkgs/development/python-modules/htmltreediff/default.nix
Normal file
26
pkgs/development/python-modules/htmltreediff/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ buildPythonPackage, fetchFromGitHub, isPy3k, lxml, html5lib, nose, stdenv }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "v0.1.2";
|
||||
pname = "htmltreediff";
|
||||
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "christian-oudard";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "16mqp2jyznrw1mgd3qzybq28h2k5wz7vmmz1m6xpgscazyjhvvd1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ lxml html5lib ];
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = " Structure-aware diff for html and xml documents";
|
||||
homepage = https://github.com/christian-oudard/htmltreediff;
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
};
|
||||
}
|
||||
22
pkgs/development/python-modules/hvac/default.nix
Normal file
22
pkgs/development/python-modules/hvac/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, requests }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hvac";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "2c9308334301daee3b5c6d56a032ca2c81eeb97d2777b73d795e201e8d037687";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
# Requires running a Vault server
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "HashiCorp Vault API client";
|
||||
homepage = https://github.com/ianunruh/hvac;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
||||
@@ -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 = ''
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, idna }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "idna_ssl";
|
||||
version = "1.0.0";
|
||||
pname = "idna-ssl";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1227e44039bd31e02adaeafdbba61281596d623d222643fb021f87f2144ea147";
|
||||
sha256 = "1293f030bc608e9aa9cdee72aa93c1521bbb9c7698068c61c9ada6772162b979";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ idna ];
|
||||
|
||||
@@ -13,7 +13,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = "http://github.com/kjd/idna/";
|
||||
homepage = "https://github.com/kjd/idna/";
|
||||
description = "Internationalized Domain Names in Applications (IDNA)";
|
||||
license = lib.licenses.bsd3;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
35
pkgs/development/python-modules/josepy/default.nix
Normal file
35
pkgs/development/python-modules/josepy/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ lib, fetchPypi, buildPythonPackage
|
||||
# buildInputs
|
||||
, six
|
||||
, setuptools
|
||||
, pyopenssl
|
||||
, cryptography
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "josepy";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1k0ahzzaq2rrjiifwbhbp7vm8z4zk0ipgiqwicil80kzlf6bhj4z";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyopenssl
|
||||
cryptography
|
||||
six
|
||||
setuptools
|
||||
];
|
||||
|
||||
# too many unpackaged check requirements
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "JOSE protocol implementation in Python";
|
||||
homepage = https://github.com/jezdez/josepy;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "An implementation of JSON Reference for Python";
|
||||
homepage = "http://github.com/gazpachoking/jsonref";
|
||||
homepage = "https://github.com/gazpachoking/jsonref";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ nand0p ];
|
||||
platforms = platforms.all;
|
||||
|
||||
@@ -14,7 +14,7 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A JSON-RPC client library for asyncio";
|
||||
homepage = http://github.com/armills/jsonrpc-async;
|
||||
homepage = https://github.com/armills/jsonrpc-async;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
27
pkgs/development/python-modules/klein/default.nix
Normal file
27
pkgs/development/python-modules/klein/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, six, twisted, werkzeug, incremental
|
||||
, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "klein";
|
||||
version = "17.10.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "30aaf0d78a987d5dbfe0968a07367ad0c73e02823cc8eef4c54f80ab848370d0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six twisted werkzeug incremental ];
|
||||
|
||||
checkInputs = [ mock ];
|
||||
|
||||
checkPhase = ''
|
||||
trial klein
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Klein Web Micro-Framework";
|
||||
homepage = "https://github.com/twisted/klein";
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user