Merge branch 'master' into staging-next
~5k rebuilds per platform. Hydra nixpkgs: ?compare=1518759
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
|
||||
|
||||
@@ -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"
|
||||
'';
|
||||
|
||||
@@ -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)
|
||||
@@ -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
|
||||
|
||||
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 = ''
|
||||
|
||||
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 ];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 ];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 ];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -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,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 ----
|
||||
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,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.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "QDarkStyle";
|
||||
sha256 = "96b14cd0440a0f73db4e14c5accdaa08072625d0395ae011d444508cbd73eb9e";
|
||||
sha256 = "1jbvvg36fnbvpzvg4ns7zx5jj8h1xsqdr05v5m98a0a9r8awdx3m";
|
||||
};
|
||||
|
||||
# No tests available
|
||||
|
||||
@@ -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',
|
||||
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";
|
||||
|
||||
@@ -21,6 +21,12 @@ buildPythonPackage rec {
|
||||
sha256 = "cfdd42aa62df299f550768de5002ec83112136a34b44441db9d633b2df802fb4";
|
||||
};
|
||||
|
||||
# Pytest 4.x fails to collect streamz-dataframe tests.
|
||||
# Removing them in v0.5.0. TODO: re-enable in a future release
|
||||
postPatch = ''
|
||||
rm -rf streamz/dataframe/tests/*.py
|
||||
'';
|
||||
|
||||
checkInputs = [ pytest networkx distributed confluent-kafka graphviz ];
|
||||
propagatedBuildInputs = [
|
||||
tornado
|
||||
|
||||
@@ -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
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user