Merge staging-next into staging
This commit is contained in:
@@ -8,18 +8,19 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-PyMongo";
|
||||
version = "2.2.0";
|
||||
pname = "flask-pymongo";
|
||||
version = "2.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "112625c5d5b4e35aad301ef9e937b7275043d310d75bd76e2b2dd07147c8217a";
|
||||
pname = "Flask-PyMongo";
|
||||
inherit version;
|
||||
sha256 = "051kwdk07y4xm4yawcjhn6bz8swxp9nanv7jj35mz2l0r0nv03k2";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
pytest
|
||||
'';
|
||||
|
||||
# Tests seem to hang
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiorpcx";
|
||||
version = "0.10.5";
|
||||
version = "0.17.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "aiorpcX";
|
||||
sha256 = "0c4kan020s09ap5qai7p1syxjz2wk6g9ydhxj6fc35s4103x7b91";
|
||||
sha256 = "14np5r75rs0v45vsv20vbzmnv3qisvm9mdllj1j9s1633cvcik0k";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ attrs ];
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansible-runner";
|
||||
version = "1.3.3";
|
||||
version = "1.3.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "2a2b83e63b830de3ff01c2992342cfe09f96e410953c85904ee7e301b21fa513";
|
||||
sha256 = "087jk00kv0qsqqspyn015nicvbl627wck3fgx2qhqawvrgqk3xb0";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest mock ];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
|
||||
buildPythonPackage rec {
|
||||
version = "2.3.2";
|
||||
version = "3.1.2";
|
||||
pname = "asgiref";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
@@ -10,7 +10,7 @@ buildPythonPackage rec {
|
||||
owner = "django";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1ljymmcscyp3bz33kjbhf99k04fbama87vg4069gbgj6lnxjpzav";
|
||||
sha256 = "1y32ys1q07nyri0b053mx24qvkw305iwvqvqgi2fdhx0va8d7qfy";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ async-timeout ];
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, numpy
|
||||
, ffmpeg_4
|
||||
, libav
|
||||
@@ -10,14 +9,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "av";
|
||||
version = "6.1.2";
|
||||
version = "6.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "eebbb56eeae650b1fc551f94d51aee39b487bf4df73c39daea186c5d2950650f";
|
||||
sha256 = "1wm33qajxcpl9rn7zfb2pwwqn87idb7ic7h5zwy2hgbpjnh3vc2g";
|
||||
};
|
||||
|
||||
checkInputs = [ nose numpy ];
|
||||
checkInputs = [ numpy ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ ffmpeg_4 ];
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, pythonOlder
|
||||
, boto3
|
||||
, enum34
|
||||
, jsonschema
|
||||
@@ -10,11 +10,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aws-sam-translator";
|
||||
version = "1.10.0";
|
||||
version = "1.11.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0axr4598b1h9kyb5mv104cpn5q667s0g1wkkbqzj66vrqsaa07qf";
|
||||
sha256 = "db872c43bdfbbae9fc8c9201e6a7aeb9a661cda116a94708ab0577b46a38b962";
|
||||
};
|
||||
|
||||
# Tests are not included in the PyPI package
|
||||
@@ -22,10 +22,9 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
boto3
|
||||
enum34
|
||||
jsonschema
|
||||
six
|
||||
];
|
||||
] ++ lib.optionals (pythonOlder "3.4") [ enum34 ];
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/awslabs/serverless-application-model;
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{ buildPythonPackage, lib, fetchPypi
|
||||
, pytest, filelock, mock, pep8
|
||||
, cython, isPy37, glibcLocales
|
||||
, cython, isPy27, isPy37, glibcLocales
|
||||
, six, pyshp, shapely, geos, proj, numpy
|
||||
, gdal, pillow, matplotlib, pyepsg, pykdtree, scipy, owslib, fiona
|
||||
, xvfb_run
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -17,10 +18,14 @@ buildPythonPackage rec {
|
||||
|
||||
checkInputs = [ filelock mock pytest pep8 ];
|
||||
|
||||
# several tests require network connectivity: we disable them
|
||||
checkPhase = ''
|
||||
# several tests require network connectivity: we disable them.
|
||||
# also py2.7's tk is over-eager in trying to open an x display,
|
||||
# so give it xvfb
|
||||
checkPhase = let
|
||||
maybeXvfbRun = lib.optionalString isPy27 "${xvfb_run}/bin/xvfb-run";
|
||||
in ''
|
||||
export HOME=$(mktemp -d)
|
||||
pytest --pyargs cartopy \
|
||||
${maybeXvfbRun} pytest --pyargs cartopy \
|
||||
-m "not network and not natural_earth" \
|
||||
-k "not test_nightshade_image"
|
||||
'';
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cassandra-driver";
|
||||
version = "3.17.0";
|
||||
version = "3.17.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1z49z6f9rj9kp1v03s1hs1rg8cj49rh0yk0fc2qi57w7slgy2hkd";
|
||||
sha256 = "1y6pnm7vzg9ip1nbly3i8mmwqmcy8g38ix74vdzvvaxwxil9bmvi";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
diff --git a/supportlib/SConstruct b/supportlib/SConstruct
|
||||
index 7f797b9..07907e9 100644
|
||||
--- a/supportlib/SConstruct
|
||||
+++ b/supportlib/SConstruct
|
||||
@@ -5,7 +5,7 @@
|
||||
# library.
|
||||
######################################################################
|
||||
|
||||
-import sys, glob, os.path
|
||||
+import sys, glob, os.path, os
|
||||
|
||||
# Read the options
|
||||
vars = Variables("cpp_config.cfg")
|
||||
@@ -16,7 +16,7 @@ vars.Add("CPPPATH", "The include directories", [])
|
||||
vars.Add("MSVS_VERSION", "The preferred version of MS Visual Studio")
|
||||
|
||||
# Create the construction environment
|
||||
-env = Environment(variables = vars)
|
||||
+env = Environment(variables = vars, ENV = os.environ)
|
||||
|
||||
# Build the files in "obj"
|
||||
env.VariantDir("obj", "src", duplicate=0)
|
||||
@@ -3,11 +3,11 @@
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "channels";
|
||||
version = "2.1.7";
|
||||
version = "2.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e13ba874d854ac493ece329dcd9947e82357c15437ac1a90ed1040d0e5b87aad";
|
||||
sha256 = "af7cdba9efb3f55b939917d1b15defb5d40259936013e60660e5e9aff98db4c5";
|
||||
};
|
||||
|
||||
# Files are missing in the distribution
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
From daae1ae35e13bc8107dc97d9219dfb8e172d5d2a Mon Sep 17 00:00:00 2001
|
||||
From: Frederik Rietdijk <fridh@fridh.nl>
|
||||
Date: Tue, 14 Mar 2017 15:00:33 +0100
|
||||
Subject: [PATCH] namespace fix
|
||||
|
||||
configparser broke other namespace packages
|
||||
https://github.com/NixOS/nixpkgs/issues/23855#issuecomment-286427428
|
||||
This patch seems to solve that issue.
|
||||
---
|
||||
setup.py | 1 -
|
||||
src/backports/__init__.py | 6 ------
|
||||
2 files changed, 7 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 3b07823..63ed25d 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -42,7 +42,6 @@ setup(
|
||||
py_modules=modules,
|
||||
package_dir={'': 'src'},
|
||||
packages=find_packages('src'),
|
||||
- namespace_packages=['backports'],
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
install_requires=requirements,
|
||||
diff --git a/src/backports/__init__.py b/src/backports/__init__.py
|
||||
index f84d25c..febdb2f 100644
|
||||
--- a/src/backports/__init__.py
|
||||
+++ b/src/backports/__init__.py
|
||||
@@ -3,9 +3,3 @@
|
||||
|
||||
from pkgutil import extend_path
|
||||
__path__ = extend_path(__path__, __name__)
|
||||
-
|
||||
-try:
|
||||
- import pkg_resources
|
||||
- pkg_resources.declare_namespace(__name__)
|
||||
-except ImportError:
|
||||
- pass
|
||||
--
|
||||
2.11.1
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro, futures}:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro, futures, enum34 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.11.6";
|
||||
version = "1.0.0";
|
||||
pname = "confluent-kafka";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1dvzlafgr4g0n7382s5bgbls3f9wrgr0yxd70yyxl59wddwzfii7";
|
||||
sha256 = "a7427944af963410479c2aaae27cc9d28db39c9a93299f14dcf16df80092c63a";
|
||||
};
|
||||
|
||||
buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ avro futures ]) ;
|
||||
buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ enum34 avro futures ]) ;
|
||||
|
||||
# Tests fail for python3 under this pypi release
|
||||
doCheck = if isPy3k then false else true;
|
||||
# No tests in PyPi Tarball
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Confluent's Apache Kafka client for Python";
|
||||
|
||||
49
pkgs/development/python-modules/csvs-to-sqlite/default.nix
Normal file
49
pkgs/development/python-modules/csvs-to-sqlite/default.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestrunner
|
||||
, click
|
||||
, dateparser
|
||||
, pandas
|
||||
, py-lru-cache
|
||||
, six
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "csvs-to-sqlite";
|
||||
version = "0.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "simonw";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0js86m4kj70g9n9gagr8l6kgswqllg6hn1xa3yvxwv95i59ihpz5";
|
||||
};
|
||||
|
||||
buildInputs = [ pytestrunner ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
dateparser
|
||||
pandas
|
||||
py-lru-cache
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Convert CSV files into a SQLite database";
|
||||
homepage = https://github.com/simonw/csvs-to-sqlite;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ buildPythonPackage, stdenv, fetchPypi
|
||||
{ buildPythonPackage, stdenv, fetchPypi, fetchpatch
|
||||
, numpy, pandas, plotly, six, colorlover
|
||||
, ipython, ipywidgets, nose
|
||||
}:
|
||||
@@ -17,6 +17,14 @@ buildPythonPackage rec {
|
||||
ipython ipywidgets
|
||||
];
|
||||
|
||||
patches = [
|
||||
# Plotly 3.8 compatibility. Remove with the next release. See https://github.com/santosjorge/cufflinks/pull/178
|
||||
(fetchpatch {
|
||||
url = "https://github.com/santosjorge/cufflinks/commit/cc4c23c2b45b870f6801d1cb0312948e1f73f424.patch";
|
||||
sha256 = "1psl2h7vscpzvb4idr6s175v8znl2mfhkcyhb1926p4saswmghw1";
|
||||
})
|
||||
];
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub
|
||||
{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, fetchpatch
|
||||
, asgiref, autobahn, twisted, pytestrunner
|
||||
, hypothesis, pytest, pytest-asyncio
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "daphne";
|
||||
version = "2.2.5";
|
||||
version = "2.3.0";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
@@ -12,9 +12,17 @@ buildPythonPackage rec {
|
||||
owner = "django";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0ixgq1rr3s60bmrwx8qwvlvs3lag1c2nrmg4iy7wcmb8i1ddylqr";
|
||||
sha256 = "020afrvbnid13gkgjpqznl025zpynisa96kybmf8q7m3wp1iq1nl";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix compatibility with Hypothesis 4. See: https://github.com/django/daphne/pull/261
|
||||
(fetchpatch {
|
||||
url = "https://github.com/django/daphne/commit/2df5096c5b63a791c209e12198ad89c998869efd.patch";
|
||||
sha256 = "0046krzcn02mihqmsjd80kk5h5flv44nqxpapa17g6dvq3jnb97n";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
|
||||
propagatedBuildInputs = [ asgiref autobahn twisted ];
|
||||
|
||||
73
pkgs/development/python-modules/datasette/default.nix
Normal file
73
pkgs/development/python-modules/datasette/default.nix
Normal file
@@ -0,0 +1,73 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, click
|
||||
, click-default-group
|
||||
, sanic
|
||||
, jinja2
|
||||
, hupper
|
||||
, pint
|
||||
, pluggy
|
||||
, pytest
|
||||
, pytestrunner
|
||||
, pytest-asyncio
|
||||
, aiohttp
|
||||
, beautifulsoup4
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "datasette";
|
||||
version = "0.27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "simonw";
|
||||
repo = "datasette";
|
||||
rev = version;
|
||||
sha256 = "02k1kk6bw034rs74w0viwzapxz684lqgjvw5q5j5xgr0i4kynylp";
|
||||
};
|
||||
|
||||
buildInputs = [ pytestrunner ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
click-default-group
|
||||
sanic
|
||||
jinja2
|
||||
hupper
|
||||
pint
|
||||
pluggy
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytest-asyncio
|
||||
aiohttp
|
||||
beautifulsoup4
|
||||
];
|
||||
|
||||
postConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "click==6.7" "click" \
|
||||
--replace "click-default-group==1.2" "click-default-group" \
|
||||
--replace "Sanic==0.7.0" "Sanic" \
|
||||
--replace "hupper==1.0" "hupper" \
|
||||
--replace "pint==0.8.1" "pint" \
|
||||
--replace "Jinja2==2.10" "Jinja2"
|
||||
'';
|
||||
|
||||
# many tests require network access
|
||||
checkPhase = ''
|
||||
pytest --ignore tests/test_api.py \
|
||||
--ignore tests/test_csv.py \
|
||||
--ignore tests/test_html.py \
|
||||
--ignore tests/test_publish_heroku.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An instant JSON API for your SQLite databases";
|
||||
homepage = https://github.com/simonw/datasette;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -28,12 +28,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "distributed";
|
||||
version = "1.26.1";
|
||||
version = "1.27.1";
|
||||
|
||||
# get full repository need conftest.py to run tests
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "768d9cbd91a7df4a2e391729ec00e387d98e8092d61d076b2272839eb12666f7";
|
||||
sha256 = "117q16ha03m8y9ydxg5svwx2cv1r2703hcy4a0zgjh5nhx4rfhiy";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pytest-repeat pytest-faulthandler pytest-timeout mock joblib ];
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-allauth";
|
||||
version = "0.38.0";
|
||||
version = "0.39.1";
|
||||
|
||||
# no tests on PyPI
|
||||
src = fetchFromGitHub {
|
||||
owner = "pennersr";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "17ch8lvq47arkgvwz2fdc89lwvgphsnmjs6wwf5g1m50xclljwmq";
|
||||
sha256 = "1kplkanhj26z3i6p0l1r5lczha4pavcx96vj3kpcp1rvyk1v0f7r";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests requests_oauthlib django python3-openid ];
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, django_environ, mock, django, six
|
||||
, pytest, pytestrunner, pytest-django
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "django-guardian";
|
||||
version = "1.5.0";
|
||||
version = "1.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9e144bbdfa67f523dc6f70768653a19c0aac29394f947a80dcb8eb7900840637";
|
||||
sha256 = "0fixr2g5amdgqzh0rvfvd7hbxyfd5ra3y3s0fsmp8i1b68p97930";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pytestrunner pytest-django django_environ mock ];
|
||||
@@ -18,6 +18,5 @@ buildPythonPackage rec {
|
||||
description = "Per object permissions for Django";
|
||||
homepage = https://github.com/django-guardian/django-guardian;
|
||||
license = [ licenses.mit licenses.bsd2 ];
|
||||
broken = !isPy3k; # https://github.com/django-guardian/django-guardian/pull/605
|
||||
};
|
||||
}
|
||||
|
||||
28
pkgs/development/python-modules/djangoql/default.nix
Normal file
28
pkgs/development/python-modules/djangoql/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, python
|
||||
, django, ply }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "djangoql";
|
||||
version = "0.12.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1mwv1ljznj9mn74ncvcyfmj6ygs8xm2rajpxm88gcac9hhdmk5gs";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ ply ];
|
||||
|
||||
checkInputs = [ django ];
|
||||
|
||||
checkPhase = ''
|
||||
export PYTHONPATH=test_project:$PYTHONPATH
|
||||
${python.executable} test_project/manage.py test core.tests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Advanced search language for Django";
|
||||
homepage = https://github.com/ivelum/djangoql;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
@@ -1,8 +1,16 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder,
|
||||
# Build inputs
|
||||
dateutil, six, text-unidecode, ipaddress ? null,
|
||||
dateutil, six, text-unidecode, ipaddress ? null
|
||||
# Test inputs
|
||||
email_validator, mock, ukpostcodeparser, pytestrunner, pytest}:
|
||||
, email_validator
|
||||
, freezegun
|
||||
, mock
|
||||
, more-itertools
|
||||
, pytest
|
||||
, pytestrunner
|
||||
, random2
|
||||
, ukpostcodeparser
|
||||
}:
|
||||
|
||||
assert pythonOlder "3.3" -> ipaddress != null;
|
||||
|
||||
@@ -18,9 +26,12 @@ buildPythonPackage rec {
|
||||
buildInputs = [ pytestrunner ];
|
||||
checkInputs = [
|
||||
email_validator
|
||||
freezegun
|
||||
mock
|
||||
ukpostcodeparser
|
||||
more-itertools
|
||||
pytest
|
||||
random2
|
||||
ukpostcodeparser
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -30,8 +41,11 @@ 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"
|
||||
|
||||
# see https://github.com/joke2k/faker/pull/911, fine since we pin correct
|
||||
# versions for python2
|
||||
substituteInPlace setup.py --replace "more-itertools<6.0.0" "more-itertools"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, pytestrunner, pytest, scipy }:
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, pytestrunner, pytest_3, scipy }:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "fastpair";
|
||||
@@ -11,16 +11,16 @@ buildPythonPackage {
|
||||
sha256 = "1pv9sxycxdk567s5gs947rhlqngrb9nn9yh4dhdvg1ix1i8dca71";
|
||||
};
|
||||
|
||||
buildInputs = [ pytestrunner ];
|
||||
nativeBuildInputs = [ (pytestrunner.override { pytest = pytest_3; }) ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkInputs = [ pytest_3 ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
scipy
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
py.test fastpair
|
||||
pytest fastpair
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
29
pkgs/development/python-modules/filemagic/default.nix
Normal file
29
pkgs/development/python-modules/filemagic/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, file
|
||||
, isPy3k, mock, unittest2 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "filemagic";
|
||||
version = "1.6";
|
||||
|
||||
# Don't use the PyPI source because it's missing files required for testing
|
||||
src = fetchFromGitHub {
|
||||
owner = "aliles";
|
||||
repo = "filemagic";
|
||||
rev = "138649062f769fb10c256e454a3e94ecfbf3017b";
|
||||
sha256 = "1jxf928jjl2v6zv8kdnfqvywdwql1zqkm1v5xn1d5w0qjcg38d4n";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace magic/api.py --replace "ctypes.util.find_library('magic')" \
|
||||
"'${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
||||
'';
|
||||
|
||||
checkInputs = [ (if isPy3k then mock else unittest2) ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "File type identification using libmagic";
|
||||
homepage = https://github.com/aliles/filemagic;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
@@ -19,11 +19,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fs";
|
||||
version = "2.4.4";
|
||||
version = "2.4.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0krf632nz24v2da7g9xivq6l2w9za3vph4vix7mm1k3byzwjnawk";
|
||||
sha256 = "1gv23ns9szdh1dgqzvc0r94qrv8fpjqj0xv99sniy2x3rxs2n0j2";
|
||||
};
|
||||
|
||||
buildInputs = [ glibcLocales ];
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gensim";
|
||||
version = "3.7.2";
|
||||
version = "3.7.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1la4y935sdah8ywa7krwy80hcl4n2k8cdx4ncy3dg3y2mdg3vq24";
|
||||
sha256 = "0mp1hbj7ciwpair7z445zj1grfv8c75gby9lih01c3mvw4pff7v2";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ smart_open numpy six scipy ];
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "GeoAlchemy2";
|
||||
version = "0.6.1";
|
||||
version = "0.6.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0bzm9zgz2gfy6smlvdgxnf6y14rfhr4vj3mjfwlxdx2vcfc95hqa";
|
||||
sha256 = "1h04qqdzyflprgf93ihn707brx61f3my5bfdqkwllhwxvr935jyb";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ sqlalchemy shapely ];
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "geopandas";
|
||||
version = "0.4.1";
|
||||
version = "0.5.0";
|
||||
name = pname + "-" + version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "geopandas";
|
||||
repo = "geopandas";
|
||||
rev = "v${version}";
|
||||
sha256 = "02v3lszxvhpsb0qrqk0kcnf9jss9gdj8az2r97aqx7ya8cwaccxa";
|
||||
sha256 = "0gmqksjgxrng52jvjk0ylkpsg0qriygb10b7n80l28kdz6c0givj";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest Rtree ];
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-cloud-speech";
|
||||
version = "0.36.3";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3d77da6086c01375908c8b800808ff83748a34b98313f885bd86df95448304fc";
|
||||
sha256 = "1d0ysapqrcwcyiil7nyh8vbj4i6hk9v23rrm4rdhgm0lwax7i0aj";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google_api_core ];
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "holoviews";
|
||||
version = "1.11.3";
|
||||
version = "1.12.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "cb03053bfcb96ccef181405b6d3482a5b868f0c7fbaa68b52d25e0071dafd1bc";
|
||||
sha256 = "0i4lfnajz685hlp9m0bjn7s279bv6mm5118b1qmldzqdnvw4s032";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
21
pkgs/development/python-modules/httptools/default.nix
Normal file
21
pkgs/development/python-modules/httptools/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "httptools";
|
||||
version = "0.0.13";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e00cbd7ba01ff748e494248183abc6e153f49181169d8a3d41bb49132ca01dfc";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A collection of framework independent HTTP protocol utils";
|
||||
homepage = https://github.com/MagicStack/httptools;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -5,13 +5,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "i3ipc";
|
||||
version = "1.5.1";
|
||||
version = "1.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "acrisci";
|
||||
repo = "i3ipc-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "06d7g4d7cnh0vp5diavy3x9wz1w5nwdrb7ipc4g1c3a2wc78862d";
|
||||
sha256 = "0sb525wvwcnikjaqzha94xr97r1gjys30csmaj17swlxgyczxvq5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ enum-compat ];
|
||||
@@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||
checkPhase = ''${python.interpreter} run-tests.py'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "An improved Python library to control i3wm";
|
||||
description = "An improved Python library to control i3wm and sway";
|
||||
homepage = https://github.com/acrisci/i3ipc-python;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ vanzef ];
|
||||
|
||||
22
pkgs/development/python-modules/inotify-simple/default.nix
Normal file
22
pkgs/development/python-modules/inotify-simple/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "inotify-simple";
|
||||
version = "1.1.8";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "inotify_simple";
|
||||
inherit version;
|
||||
sha256 = "1pfqvnynwh318cakldhg7535kbs02asjsgv6s0ki12i7fgfi0b7w";
|
||||
};
|
||||
|
||||
# The package has no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple Python wrapper around inotify";
|
||||
homepage = https://github.com/chrisjbillington/inotify_simple;
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
@@ -9,12 +9,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "j2cli";
|
||||
version = "0.3.7";
|
||||
version = "0.3.8";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a7b0bdb02a3afb6d2eff40228b2216306332ace4341372310dafd15f938e1afa";
|
||||
sha256 = "1f1a5fzap4ji5l7x8bprrgcpy1071lpa9g5h8jz7iqzgqynkaygi";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "kubernetes";
|
||||
version = "8.0.1";
|
||||
version = "9.0.0";
|
||||
|
||||
prePatch = ''
|
||||
sed -e 's/sphinx>=1.2.1,!=1.3b1,<1.4 # BSD/sphinx/' -i test-requirements.txt
|
||||
@@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0y0aygnd7kpflwdm3zxrmsgws0frk4qwq3lnq92zsiyxcxh8r4i5";
|
||||
sha256 = "1gz3sk4s0gx68xpxjwzp9n2shlxfa9d5j4h7cvmglim9bgasxc58";
|
||||
};
|
||||
|
||||
checkInputs = [ isort coverage pytest mock sphinx autopep8 pep8 codecov recommonmark nose ];
|
||||
|
||||
21
pkgs/development/python-modules/langdetect/default.nix
Normal file
21
pkgs/development/python-modules/langdetect/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "langdetect";
|
||||
version = "1.0.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "0c5zm6c7xzsigbb9c7v4r33fcpz911zscfwvh3dq1qxdy3ap18ci";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python port of Google's language-detection library";
|
||||
homepage = https://github.com/Mimino666/langdetect;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
@@ -15,12 +15,11 @@ buildPythonPackage rec {
|
||||
sha256 = "1zynj09w361yvbxr4hir681dfnlq1hzniws9dzgmlkvd6jnhjgx3";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest
|
||||
# tests of Nearley support require js2py
|
||||
preCheck = ''
|
||||
rm -r tests/test_nearley
|
||||
'';
|
||||
|
||||
doCheck = false; # Requires js2py
|
||||
|
||||
meta = {
|
||||
description = "A modern parsing library for Python, implementing Earley & LALR(1) and an easy interface";
|
||||
homepage = https://github.com/lark-parser/lark;
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "latexcodec";
|
||||
version = "1.0.6";
|
||||
version = "1.0.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0s4wdbg0w2l8pj3i0y4510i0s04p8nhxcsa2z41bjsv0k66npb81";
|
||||
sha256 = "0wnp3yqcgx0rpy8dz51vh75lbp2qif67da19zi7m3ca98n887hgb";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
19
pkgs/development/python-modules/leveldb/default.nix
Normal file
19
pkgs/development/python-modules/leveldb/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ lib, fetchPypi, buildPythonPackage }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "leveldb";
|
||||
version = "0.194";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0f6d1y65k6miimic82n8zsx50z9k982mvzp90crwcv1knjrphcww";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://code.google.com/archive/p/py-leveldb/";
|
||||
description = "Thread-safe Python bindings for LevelDB";
|
||||
platforms = [ "x86_64-linux" "i686-linux" ];
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.aanderse ];
|
||||
};
|
||||
}
|
||||
@@ -3,13 +3,13 @@
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "netCDF4";
|
||||
version = "1.5.0.1";
|
||||
version = "1.5.1.2";
|
||||
|
||||
disabled = isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "db24f7ca724e791574774b2a1e323ce0dfb544957fc6fbdb5d4c368f382b2de9";
|
||||
sha256 = "161pqb7xc9nj0dlnp6ply8c6zv68y1frq619xqfrpmc9s1932jzk";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ordered-set";
|
||||
version = "3.1";
|
||||
version = "3.1.1";
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0slg1ys58dzxl96mws3sydzavdzqdk0s2nrc852dphd9kbm07dzr";
|
||||
sha256 = "094pww79pawgmjgwi47r0fji9irb7sr4xc9xwjbb0wwcficaigx7";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
@@ -38,9 +38,11 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
# most of the downloader tests and 4 other tests require a network connection
|
||||
# test_export_yaml and test_citations check for the exact output produced by pyyaml 3.x and
|
||||
# fail with 5.x
|
||||
checkPhase = ''
|
||||
HOME=$(mktemp -d) pytest papis tests --ignore tests/downloaders \
|
||||
-k "not test_get_data and not test_doi_to_data and not test_general and not get_document_url"
|
||||
-k "not test_get_data and not test_doi_to_data and not test_general and not get_document_url and not test_export_yaml and not test_citations"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
20
pkgs/development/python-modules/pdftotext/default.nix
Normal file
20
pkgs/development/python-modules/pdftotext/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, poppler }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pdftotext";
|
||||
version = "2.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1jwc2zpss0983wqqi0kpichasljsxar9c4ma8vycn8maw3pi3bg3";
|
||||
};
|
||||
|
||||
buildInputs = [ poppler ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple PDF text extraction";
|
||||
homepage = https://github.com/jalan/pdftotext;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "phonenumbers";
|
||||
version = "8.10.10";
|
||||
version = "8.10.11";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "dabc8cfcff96446b0787ea337739ea286ec3949ec27a4790a9b4587817da5c5f";
|
||||
sha256 = "1rd46dryxkwlha9lfqqwywazlh908ngh6076zz3myhzf8h3dmxnz";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "plotly";
|
||||
version = "3.7.1";
|
||||
version = "3.9.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1gad00c0p56zvmk2yzy03m0f3fcq67q9kdgdfxph2aw905mkwddc";
|
||||
sha256 = "498c35a2a482f7c7937fc2f3681fec653a0191dd21e40e754a6b774234cd167e";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
23
pkgs/development/python-modules/py-lru-cache/default.nix
Normal file
23
pkgs/development/python-modules/py-lru-cache/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "py-lru-cache";
|
||||
version = "0.1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "py_lru_cache";
|
||||
sha256 = "1w3a8l3ckl1zz0f2vlfrawl9a402r458p7xzhy4sgq8k9rl37pq2";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "An in-memory LRU cache for python";
|
||||
homepage = https://github.com/stucchio/Python-LRU-cache;
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
|
||||
}
|
||||
28
pkgs/development/python-modules/py-radix/default.nix
Normal file
28
pkgs/development/python-modules/py-radix/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, coverage
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "py-radix";
|
||||
version = "0.10.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mjschultz";
|
||||
repo = "py-radix";
|
||||
rev = "v${version}";
|
||||
sha256 = "01xyn9lg6laavnzczf5bck1l1c2718ihxx0hvdkclnnxjqhbrqis";
|
||||
};
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [ coverage nose ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python radix tree for IPv4 and IPv6 prefix matching";
|
||||
homepage = https://github.com/mjschultz/py-radix;
|
||||
license = with licenses; [ isc bsdOriginal ];
|
||||
maintainers = with maintainers; [ mkg ];
|
||||
};
|
||||
}
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "py3exiv2";
|
||||
version = "0.6.1";
|
||||
version = "0.7.0";
|
||||
disabled = !(isPy3k);
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1j2pkynqdqrxf86qyzrjj76i33ylxfsrqxv4j2x9bkd0hk6x0pa6";
|
||||
sha256 = "1gcvmglyl8ad2f336w88gwkd5djjsxdx1ind9wnlbqc3jn9i05cg";
|
||||
};
|
||||
|
||||
buildInputs = [ exiv2 boost ];
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ buildPythonPackage, stdenv, lxml, click, fetchFromGitHub, pytest, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.3.13";
|
||||
version = "0.3.15";
|
||||
pname = "pyaxmlparser";
|
||||
|
||||
# the PyPI tarball doesn't ship tests.
|
||||
@@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||
owner = "appknox";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0jfjhxc6b57npsidknxmhj1x813scg47aaw90ybyr90fpdz5rlwk";
|
||||
sha256 = "0p4x21rg8h7alrg2zk6rbgc3fj77fiyky4zzvziz2bp5jpx1pvzp";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
@@ -1,88 +0,0 @@
|
||||
diff -crB pygame-1.9.1release/Setup.in pygame-1.9.1release-v4lpatch//Setup.in
|
||||
*** pygame-1.9.1release/Setup.in Thu Jul 2 06:41:56 2009
|
||||
--- pygame-1.9.1release-v4lpatch//Setup.in Thu Mar 24 17:31:22 2011
|
||||
***************
|
||||
*** 34,40 ****
|
||||
_numericsndarray src/_numericsndarray.c $(SDL) $(MIXER) $(DEBUG)
|
||||
movie src/movie.c $(SDL) $(SMPEG) $(DEBUG)
|
||||
scrap src/scrap.c $(SDL) $(SCRAP) $(DEBUG)
|
||||
! _camera src/_camera.c src/camera_v4l2.c src/camera_v4l.c $(SDL) $(DEBUG)
|
||||
pypm src/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG)
|
||||
|
||||
GFX = src/SDL_gfx/SDL_gfxPrimitives.c
|
||||
--- 34,40 ----
|
||||
_numericsndarray src/_numericsndarray.c $(SDL) $(MIXER) $(DEBUG)
|
||||
movie src/movie.c $(SDL) $(SMPEG) $(DEBUG)
|
||||
scrap src/scrap.c $(SDL) $(SCRAP) $(DEBUG)
|
||||
! _camera src/_camera.c src/camera_v4l2.c $(SDL) $(DEBUG)
|
||||
pypm src/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG)
|
||||
|
||||
GFX = src/SDL_gfx/SDL_gfxPrimitives.c
|
||||
diff -crB pygame-1.9.1release/src/_camera.c pygame-1.9.1release-v4lpatch//src/_camera.c
|
||||
*** pygame-1.9.1release/src/_camera.c Sun Mar 15 20:30:41 2009
|
||||
--- pygame-1.9.1release-v4lpatch//src/_camera.c Thu Mar 24 16:58:18 2011
|
||||
***************
|
||||
*** 160,179 ****
|
||||
{
|
||||
#if defined(__unix__)
|
||||
if (v4l2_open_device(self) == 0) {
|
||||
! if (v4l_open_device(self) == 0) {
|
||||
! v4l2_close_device(self);
|
||||
! return NULL;
|
||||
! } else {
|
||||
! self->camera_type = CAM_V4L;
|
||||
! if (v4l_init_device(self) == 0) {
|
||||
! v4l2_close_device(self);
|
||||
! return NULL;
|
||||
! }
|
||||
! if (v4l_start_capturing(self) == 0) {
|
||||
! v4l2_close_device(self);
|
||||
! return NULL;
|
||||
! }
|
||||
! }
|
||||
} else {
|
||||
self->camera_type = CAM_V4L2;
|
||||
if (v4l2_init_device(self) == 0) {
|
||||
--- 160,167 ----
|
||||
{
|
||||
#if defined(__unix__)
|
||||
if (v4l2_open_device(self) == 0) {
|
||||
! v4l2_close_device(self);
|
||||
! return NULL;
|
||||
} else {
|
||||
self->camera_type = CAM_V4L2;
|
||||
if (v4l2_init_device(self) == 0) {
|
||||
diff -crB pygame-1.9.1release/src/camera.h pygame-1.9.1release-v4lpatch//src/camera.h
|
||||
*** pygame-1.9.1release/src/camera.h Fri Oct 10 04:37:10 2008
|
||||
--- pygame-1.9.1release-v4lpatch//src/camera.h Thu Mar 24 16:44:32 2011
|
||||
***************
|
||||
*** 39,45 ****
|
||||
|
||||
#include <asm/types.h> /* for videodev2.h */
|
||||
|
||||
- #include <linux/videodev.h>
|
||||
#include <linux/videodev2.h>
|
||||
#endif
|
||||
|
||||
--- 39,44 ----
|
||||
***************
|
||||
*** 51,57 ****
|
||||
#define RGB_OUT 1
|
||||
#define YUV_OUT 2
|
||||
#define HSV_OUT 4
|
||||
- #define CAM_V4L 1
|
||||
#define CAM_V4L2 2
|
||||
|
||||
struct buffer
|
||||
--- 50,55 ----
|
||||
***************
|
||||
*** 111,118 ****
|
||||
int v4l2_close_device (PyCameraObject* self);
|
||||
int v4l2_open_device (PyCameraObject* self);
|
||||
|
||||
- /* internal functions specific to v4l */
|
||||
- int v4l_open_device (PyCameraObject* self);
|
||||
- int v4l_init_device(PyCameraObject* self);
|
||||
- int v4l_start_capturing(PyCameraObject* self);
|
||||
#endif
|
||||
--- 109,112 ----
|
||||
@@ -32,12 +32,25 @@ let
|
||||
"test_set_notBefore"
|
||||
];
|
||||
|
||||
# these tests are extremely tightly wed to the exact output of the openssl cli tool,
|
||||
# including exact punctuation.
|
||||
failingOpenSSL_1_1Tests = [
|
||||
"test_dump_certificate"
|
||||
"test_dump_privatekey_text"
|
||||
"test_dump_certificate_request"
|
||||
"test_export_text"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# https://github.com/pyca/pyopenssl/issues/692
|
||||
# These tests, we disable always.
|
||||
"test_set_default_verify_paths"
|
||||
"test_fallback_default_verify_paths"
|
||||
] ++ (optionals (hasPrefix "libressl" openssl.meta.name) failingLibresslTests);
|
||||
] ++ (
|
||||
optionals (hasPrefix "libressl" openssl.meta.name) failingLibresslTests
|
||||
) ++ (
|
||||
optionals (versionAtLeast (getVersion openssl.name) "1.1") failingOpenSSL_1_1Tests
|
||||
);
|
||||
|
||||
# Compose the final string expression, including the "-k" and the single quotes.
|
||||
testExpression = optionalString (disabledTests != [])
|
||||
|
||||
20
pkgs/development/python-modules/pytest-env/default.nix
Normal file
20
pkgs/development/python-modules/pytest-env/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-env";
|
||||
version = "0.6.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1hl0ln0cicdid4qjk7mv90lw9xkb0v71dlj7q7rn89vzxxm9b53y";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pytest plugin used to set environment variables";
|
||||
homepage = https://github.com/MobileDynasty/pytest-env;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
33
pkgs/development/python-modules/pytest-sanic/default.nix
Normal file
33
pkgs/development/python-modules/pytest-sanic/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, aiohttp
|
||||
, async_generator
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-sanic";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0vlaq6p9g2p1xj9wshmin58p1faf5h9rcxvmjapx26zv8n23rnm1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pytest
|
||||
aiohttp
|
||||
async_generator
|
||||
];
|
||||
|
||||
# circular dependency on sanic
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A pytest plugin for Sanic";
|
||||
homepage = https://github.com/yunstanford/pytest-sanic/;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,10 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, termcolor, pytest }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, termcolor
|
||||
, pytest
|
||||
, packaging
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-sugar";
|
||||
@@ -9,19 +15,16 @@ buildPythonPackage rec {
|
||||
sha256 = "fcd87a74b2bce5386d244b49ad60549bfbc4602527797fac167da147983f58ab";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ termcolor pytest ];
|
||||
propagatedBuildInputs = [
|
||||
termcolor
|
||||
pytest
|
||||
packaging
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A plugin that changes the default look and feel of py.test";
|
||||
homepage = https://github.com/Frozenball/pytest-sugar;
|
||||
license = licenses.bsd3;
|
||||
|
||||
# incompatible with pytest 3.5
|
||||
# https://github.com/Frozenball/pytest-sugar/issues/134
|
||||
broken = true; # 2018-04-20
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
|
||||
20
pkgs/development/python-modules/python-dotenv/default.nix
Normal file
20
pkgs/development/python-modules/python-dotenv/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, click, ipython }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-dotenv";
|
||||
version = "0.10.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1q4sp6ppjiqlsz3h43q9iya4n3qkhx6ng16bcbacfxdyrp9xvcf9";
|
||||
};
|
||||
|
||||
checkInputs = [ click ipython ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Add .env support to your django/flask apps in development and deployments";
|
||||
homepage = https://github.com/theskumar/python-dotenv;
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, gnupg1 }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, gnupg }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-gnupg";
|
||||
@@ -12,9 +12,9 @@ buildPythonPackage rec {
|
||||
# Let's make the library default to our gpg binary
|
||||
patchPhase = ''
|
||||
substituteInPlace gnupg.py \
|
||||
--replace "gpgbinary='gpg'" "gpgbinary='${gnupg1}/bin/gpg'"
|
||||
--replace "gpgbinary='gpg'" "gpgbinary='${gnupg}/bin/gpg'"
|
||||
substituteInPlace test_gnupg.py \
|
||||
--replace "gpgbinary=GPGBINARY" "gpgbinary='${gnupg1}/bin/gpg'" \
|
||||
--replace "gpgbinary=GPGBINARY" "gpgbinary='${gnupg}/bin/gpg'" \
|
||||
--replace "test_search_keys" "disabled__test_search_keys"
|
||||
'';
|
||||
|
||||
|
||||
@@ -1,22 +1,24 @@
|
||||
{ buildPythonPackage, fetchPypi, lib,
|
||||
pkgconfig, igraph }:
|
||||
{ buildPythonPackage, fetchPypi, lib, isPy3k
|
||||
, pkgconfig, igraph }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-igraph";
|
||||
version = "0.7.1.post6";
|
||||
|
||||
buildInputs = [ pkgconfig igraph ];
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ igraph ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0xp61zz710qlzhmzbfr65d5flvsi8zf2xy78s6rsszh719wl5sm5";
|
||||
};
|
||||
|
||||
doCheck = !isPy3k;
|
||||
|
||||
meta = {
|
||||
description = "High performance graph data structures and algorithms";
|
||||
homepage = "https://igraph.org/python/";
|
||||
license = lib.licenses.gpl2;
|
||||
maintainers = [ lib.maintainers.MostAwesomeDude ];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "qdarkstyle";
|
||||
version = "2.6.5";
|
||||
version = "2.6.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "QDarkStyle";
|
||||
sha256 = "96b14cd0440a0f73db4e14c5accdaa08072625d0395ae011d444508cbd73eb9e";
|
||||
sha256 = "18l2ynq2x8jd380nr47xy947c3qdmhv8nnxnan03y5d51azm8yh3";
|
||||
};
|
||||
|
||||
# No tests available
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "qtconsole";
|
||||
version = "4.4.3";
|
||||
version = "4.4.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1b03n1ixzscm0jw97l4dq5iy4fslnqxq5bb8287xb7n2a1gs26xw";
|
||||
sha256 = "1qqyk5wlaps1m2hb5n2q1gynw2ayqn31dvxwwni4450ygf65arx6";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ] ++ lib.optionals isPy27 [mock];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "QtPy";
|
||||
version = "1.7.0";
|
||||
version = "1.7.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0gjg7farw6mkmrwqcg6ms7j74g8py2msvawddji4wy8yfvql1ifl";
|
||||
sha256 = "17pdn4d77gjjrsq7m1i6dz9px0dfi6wgaqz2v3sa3crl15spawp9";
|
||||
};
|
||||
|
||||
# no concrete propagatedBuildInputs as multiple backends are supposed
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -18,7 +18,7 @@ from version import VERSION # NOQA
|
||||
install_requires = [
|
||||
'pandas >= 0.14',
|
||||
'numpy >= 1.8',
|
||||
- 'requests >= 2.7.0, < 2.18', # Version 2.18 appears to break pulling data.
|
||||
+ 'requests >= 2.7.0', # Works fine
|
||||
'inflection >= 0.3.1',
|
||||
'python-dateutil',
|
||||
'six',
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "ropper";
|
||||
version = "1.11.13";
|
||||
version = "1.12.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "245c6a1c8b294209bed039cd6a389f1e298d3fe6783d48ad9c6b2df3a41f51ee";
|
||||
sha256 = "1aignpxz6rcbf6yxy1gjr708p56i6nqrbgblq24nanssz9rhkyzg";
|
||||
};
|
||||
# XXX tests rely on user-writeable /dev/shm to obtain process locks and return PermissionError otherwise
|
||||
# workaround: sudo chmod 777 /dev/shm
|
||||
@@ -25,7 +25,7 @@ buildPythonApplication rec {
|
||||
propagatedBuildInputs = [ capstone filebytes ];
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://scoding.de/ropper/;
|
||||
license = licenses.gpl2;
|
||||
license = licenses.bsd3;
|
||||
description = "Show information about files in different file formats";
|
||||
maintainers = with maintainers; [ bennofs ];
|
||||
};
|
||||
|
||||
68
pkgs/development/python-modules/sanic/default.nix
Normal file
68
pkgs/development/python-modules/sanic/default.nix
Normal file
@@ -0,0 +1,68 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, httptools
|
||||
, aiofiles
|
||||
, websockets
|
||||
, multidict
|
||||
, uvloop
|
||||
, ujson
|
||||
, pytest
|
||||
, gunicorn
|
||||
, pytestcov
|
||||
, aiohttp
|
||||
, beautifulsoup4
|
||||
, pytest-sanic
|
||||
, pytest-sugar
|
||||
, pytest-benchmark
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sanic";
|
||||
version = "19.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ce434eb154872ca64493a6c3a288f11fd10bca0de7be7bf9f1d0d063185e51ec";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
httptools
|
||||
aiofiles
|
||||
websockets
|
||||
multidict
|
||||
uvloop
|
||||
ujson
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
gunicorn
|
||||
pytestcov
|
||||
aiohttp
|
||||
beautifulsoup4
|
||||
pytest-sanic
|
||||
pytest-sugar
|
||||
pytest-benchmark
|
||||
];
|
||||
|
||||
postConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "websockets>=6.0,<7.0" "websockets"
|
||||
'';
|
||||
|
||||
# 10/500 tests ignored due to missing directory and
|
||||
# requiring network access
|
||||
checkPhase = ''
|
||||
pytest --ignore tests/test_blueprints.py \
|
||||
--ignore tests/test_routes.py \
|
||||
--ignore tests/test_worker.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A microframework based on uvloop, httptools, and learnings of flask";
|
||||
homepage = http://github.com/channelcat/sanic/;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
44
pkgs/development/python-modules/seabreeze/default.nix
Normal file
44
pkgs/development/python-modules/seabreeze/default.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, pyusb
|
||||
, numpy
|
||||
}:
|
||||
|
||||
## Usage
|
||||
# In NixOS, simply add the `udev` multiple output to services.udev.packages:
|
||||
# services.udev.packages = [ pkgs.python3Packages.seabreeze.udev ];
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "seabreeze";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ap--";
|
||||
repo = "python-seabreeze";
|
||||
rev = "python-seabreeze-v${version}";
|
||||
sha256 = "0bc2s9ic77gz9m40w89snixphxlzib60xa4f49n4zasjrddfz1l8";
|
||||
};
|
||||
|
||||
outputs = [ "out" "udev" ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $udev/lib/udev/rules.d
|
||||
cp misc/10-oceanoptics.rules $udev/lib/udev/rules.d/10-oceanoptics.rules
|
||||
'';
|
||||
|
||||
# underlying c libraries are tested and fail
|
||||
# (c libs are used with anaconda, which we don't care about as we use the alternative path, being that of pyusb).
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ pyusb numpy ];
|
||||
|
||||
setupPyBuildFlags = [ "--without-cseabreeze" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/ap--/python-seabreeze";
|
||||
description = "A python library to access Ocean Optics spectrometers";
|
||||
maintainers = [];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
@@ -1,10 +1,11 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, characteristic
|
||||
, pythonOlder
|
||||
, cryptography
|
||||
, ipaddress
|
||||
, pyasn1
|
||||
, pyasn1-modules
|
||||
, pyopenssl
|
||||
, idna
|
||||
, attrs
|
||||
, pytest
|
||||
@@ -12,18 +13,18 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "service_identity";
|
||||
version = "17.0.0";
|
||||
version = "18.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pyca";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1fn332fci776m5a7jx8c1jgbm27160ip5qvv8p01c242ag6by5g0";
|
||||
sha256 = "1aw475ksmd4vpl8cwfdcsw2v063nbhnnxpy633sb75iqp9aazhlx";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
characteristic pyasn1 pyasn1-modules pyopenssl idna attrs
|
||||
];
|
||||
pyasn1 pyasn1-modules idna attrs cryptography
|
||||
] ++ lib.optionals (pythonOlder "3.3") [ ipaddress ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkPhase = "py.test";
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "shodan";
|
||||
version = "1.12.1";
|
||||
version = "1.13.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0fd68yaqhpay7jxhyc6xkdrak88wdblxs0phgdkngbakx2yaw2y3";
|
||||
sha256 = "06z9h5vxrvqns3yr4jfrxifw0iqdn6ijlnznpmyi8nc18h8yma2a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "smart_open";
|
||||
version = "1.8.2";
|
||||
version = "1.8.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d3c16477ad7e8f94ab033630ea31993670ad21153172367db1acb143077d501c";
|
||||
sha256 = "029b0ns6q9vl4pyk1w7jp4dvif1mfgr53a58z1p8zipwnhkfwnih";
|
||||
};
|
||||
|
||||
# nixpkgs version of moto is >=1.2.0, remove version pin to fix build
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "streamz";
|
||||
version = "0.5.0";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "cfdd42aa62df299f550768de5002ec83112136a34b44441db9d633b2df802fb4";
|
||||
sha256 = "80c9ded1d6e68d3b78339deb6e9baf93a633d84b4a8875221e337ac06890103f";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest networkx distributed confluent-kafka graphviz ];
|
||||
@@ -29,8 +29,9 @@ buildPythonPackage rec {
|
||||
six
|
||||
];
|
||||
|
||||
# Disable test_tcp_async because fails on sandbox build
|
||||
checkPhase = ''
|
||||
pytest
|
||||
pytest --deselect=streamz/tests/test_sources.py::test_tcp_async
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "stripe";
|
||||
version = "2.21.0";
|
||||
version = "2.27.0";
|
||||
|
||||
# Tests require network connectivity and there's no easy way to disable
|
||||
# them. ~ C.
|
||||
@@ -11,7 +11,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "170f76f2502888debf02da580138c840497b9359876ca3838f4692f2f02c9110";
|
||||
sha256 = "0pvypngbmiji92nfs28bmiyl7brsm6cj18d9vhnwyydnzn3nlkl1";
|
||||
};
|
||||
|
||||
checkInputs = [ unittest2 mock ];
|
||||
|
||||
30
pkgs/development/python-modules/tess/default.nix
Normal file
30
pkgs/development/python-modules/tess/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cython
|
||||
, numpy
|
||||
, scipy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tess";
|
||||
version = "unstable-2019-05-07";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wackywendell";
|
||||
repo = "tess";
|
||||
rev = "22c19df952732f9749637d1bf6d7b676b6c7b26c";
|
||||
sha256 = "0pj18nrfx749fjc6bjdk5r3g1104c6jy6xg7jrpmssllhypbb1m4";
|
||||
};
|
||||
|
||||
buildInputs = [ cython ];
|
||||
|
||||
propagatedBuildInputs = [ numpy scipy ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A module for calculating and analyzing Voronoi tessellations";
|
||||
homepage = https://tess.readthedocs.org;
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "traits";
|
||||
version = "5.0.0";
|
||||
version = "5.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8369117036fbbe00dbd40e1a01c8775b52bdbfa11db5788168e7c8c56663bac0";
|
||||
sha256 = "0lwmqgkjihqkf269xmdqsa302p378zjcpz01k9a98br7ngzrsj64";
|
||||
};
|
||||
|
||||
# Use pytest because its easier to discover tests
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ buildPythonPackage, fetchPypi, lib, pythonOlder }:
|
||||
buildPythonPackage rec {
|
||||
pname = "typed-ast";
|
||||
version = "1.3.4";
|
||||
version = "1.3.5";
|
||||
src = fetchPypi{
|
||||
inherit pname version;
|
||||
sha256 = "68c362848d9fb71d3c3e5f43c09974a0ae319144634e7a47db62f0f2a54a7fa7";
|
||||
sha256 = "1m7pr6qpana3cvqwiw7mlvrgvmw27ch5mx1592572xhlki8g85ak";
|
||||
};
|
||||
# Only works with Python 3.3 and newer;
|
||||
disabled = pythonOlder "3.3";
|
||||
|
||||
30
pkgs/development/python-modules/uvloop/default.nix
Normal file
30
pkgs/development/python-modules/uvloop/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pyopenssl
|
||||
, libuv
|
||||
, psutil
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "uvloop";
|
||||
version = "0.12.2";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c48692bf4587ce281d641087658eca275a5ad3b63c78297bbded96570ae9ce8f";
|
||||
};
|
||||
|
||||
buildInputs = [ libuv ];
|
||||
|
||||
checkInputs = [ pyopenssl psutil ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast implementation of asyncio event loop on top of libuv";
|
||||
homepage = http://github.com/MagicStack/uvloop;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zstd";
|
||||
version = "1.3.8.1";
|
||||
version = "1.4.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d89e884da59c35e480439f1663cb3cb4cf372e42ba0eb0bdf22b9625414702a3";
|
||||
sha256 = "01prq9rwz1gh42idnj2162w79dzs8gf3ac8pn12lz347w280kjbk";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
Reference in New Issue
Block a user