Merge master into staging-next
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pytest, glibcLocales, vega, pandas, ipython, traitlets }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch
|
||||
, pytest, jinja2, sphinx, vega_datasets, ipython, glibcLocales
|
||||
, entrypoints, jsonschema, numpy, pandas, six, toolz, typing }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "altair";
|
||||
@@ -10,18 +11,19 @@ buildPythonPackage rec {
|
||||
sha256 = "e8b222588dde98ec614e6808357fde7fa321118db44cc909df2bf30158d931c0";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i "s/vega==/vega>=/g" setup.py
|
||||
'';
|
||||
patches = fetchpatch {
|
||||
url = https://github.com/altair-viz/altair/commit/bfca8aecce9593c48aa5834e3f8f841deb58391c.patch;
|
||||
sha256 = "01izc5d8c6ry3mh0k0hfasb6jc4720g75yw2qdlp9ja8mnjsp4k3";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest glibcLocales ];
|
||||
checkInputs = [ pytest jinja2 sphinx vega_datasets ipython glibcLocales ];
|
||||
|
||||
checkPhase = ''
|
||||
export LANG=en_US.UTF-8
|
||||
py.test altair --doctest-modules
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ vega pandas ipython traitlets ];
|
||||
propagatedBuildInputs = [ entrypoints jsonschema numpy pandas six toolz typing ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A declarative statistical visualization library for Python.";
|
||||
|
||||
33
pkgs/development/python-modules/aws-adfs/default.nix
Normal file
33
pkgs/development/python-modules/aws-adfs/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, boto3, requests, click, configparser }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.12.0";
|
||||
pname = "aws-adfs";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1cjrm61k6905dmhgrqyc5caxx5hbhj3sr6cx4r6sbdyz453i7pc6";
|
||||
};
|
||||
|
||||
# Relax version constraint
|
||||
patchPhase = ''
|
||||
sed -i 's/coverage < 4/coverage/' setup.py
|
||||
'';
|
||||
|
||||
# Test suite writes files to $HOME/.aws/, or /homeless-shelter if unset
|
||||
HOME = ".";
|
||||
|
||||
# Required for python3 tests, along with glibcLocales
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
checkInputs = [ glibcLocales pytest pytestrunner pytestcov mock ];
|
||||
propagatedBuildInputs = [ lxml boto3 requests click configparser ];
|
||||
|
||||
meta = {
|
||||
description = "Command line tool to ease aws cli authentication against ADFS";
|
||||
homepage = https://github.com/venth/aws-adfs;
|
||||
license = lib.licenses.psfl;
|
||||
maintainers = [ lib.maintainers.bhipple ];
|
||||
};
|
||||
}
|
||||
@@ -1,17 +1,15 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, pythonOlder
|
||||
, pyperclip, six, pyparsing, vim
|
||||
{ stdenv, fetchPypi, buildPythonPackage, pythonOlder, isPy3k
|
||||
, pyperclip, six, pyparsing, vim, wcwidth, colorama
|
||||
, contextlib2 ? null, subprocess32 ? null
|
||||
, pytest, mock, which, fetchFromGitHub, glibcLocales
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "cmd2";
|
||||
version = "0.8.0";
|
||||
version = "0.9.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-cmd2";
|
||||
repo = "cmd2";
|
||||
rev = version;
|
||||
sha256 = "0nw2b7n7zg51bc3glxw0l9fn91mwjnjshklhmxhyvjbsg7khf64z";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1wpw4f9zix30hfncm0hwxjjdx78zq26x3r8s9nvsq9vnxf41xb49";
|
||||
};
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
@@ -31,14 +29,16 @@ buildPythonPackage rec {
|
||||
py.test -k 'not test_path_completion_user_expansion'
|
||||
'';
|
||||
doCheck = !stdenv.isDarwin;
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
colorama
|
||||
pyperclip
|
||||
six
|
||||
pyparsing
|
||||
wcwidth
|
||||
]
|
||||
++ stdenv.lib.optional (pythonOlder "3.5") contextlib2
|
||||
++ stdenv.lib.optional (pythonOlder "3.0") subprocess32
|
||||
;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
49
pkgs/development/python-modules/cmd2/old.nix
Normal file
49
pkgs/development/python-modules/cmd2/old.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, pythonOlder
|
||||
, pyperclip, six, pyparsing, vim
|
||||
, contextlib2 ? null, subprocess32 ? null
|
||||
, pytest, mock, which, fetchFromGitHub, glibcLocales
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "cmd2";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-cmd2";
|
||||
repo = "cmd2";
|
||||
rev = version;
|
||||
sha256 = "0nw2b7n7zg51bc3glxw0l9fn91mwjnjshklhmxhyvjbsg7khf64z";
|
||||
};
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
|
||||
postPatch = stdenv.lib.optional stdenv.isDarwin ''
|
||||
# Fake the impure dependencies pbpaste and pbcopy
|
||||
mkdir bin
|
||||
echo '#/bin/sh' > bin/pbpaste
|
||||
echo '#/bin/sh' > bin/pbcopy
|
||||
chmod +x bin/{pbcopy,pbpaste}
|
||||
export PATH=$(realpath bin):$PATH
|
||||
'';
|
||||
|
||||
checkInputs= [ pytest mock which vim glibcLocales ];
|
||||
checkPhase = ''
|
||||
# test_path_completion_user_expansion might be fixed in the next release
|
||||
py.test -k 'not test_path_completion_user_expansion'
|
||||
'';
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyperclip
|
||||
six
|
||||
pyparsing
|
||||
]
|
||||
++ stdenv.lib.optional (pythonOlder "3.5") contextlib2
|
||||
++ stdenv.lib.optional (pythonOlder "3.0") subprocess32
|
||||
;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Enhancements for standard library's cmd module";
|
||||
homepage = https://github.com/python-cmd2/cmd2;
|
||||
maintainers = with maintainers; [ teto ];
|
||||
};
|
||||
}
|
||||
@@ -46,6 +46,11 @@ buildPythonPackage rec {
|
||||
export CVXOPT_FFTW_INC_DIR=${fftw.dev}/include
|
||||
'';
|
||||
|
||||
# https://github.com/cvxopt/cvxopt/issues/122
|
||||
# This is fixed on staging (by #43234, status 2018-07-15), but until that
|
||||
# lands we should disable the tests. Otherwise the 99% of use cases that
|
||||
# should be unaffected by that failure are affected.
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover -s tests
|
||||
'';
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "libarcus";
|
||||
version = "3.3.0";
|
||||
version = "3.4.1";
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Ultimaker";
|
||||
|
||||
41
pkgs/development/python-modules/pycaption/default.nix
Normal file
41
pkgs/development/python-modules/pycaption/default.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{ lib, fetchpatch
|
||||
, buildPythonPackage, fetchPypi, isPy3k, pythonOlder
|
||||
, beautifulsoup4, lxml, cssutils, future, enum34, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycaption";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0f2hx9ky65c4niws3x5yx59yi8mqqrw9b2cghd220g4hj9yl800h";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'beautifulsoup4>=4.2.1,<4.5.0' \
|
||||
'beautifulsoup4>=4.2.1,<=4.6.0'
|
||||
'';
|
||||
|
||||
# don't require enum34 on python >= 3.4
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/pbs/pycaption/pull/161.patch";
|
||||
sha256 = "0p58awpsqx1qc3x9zfl1gd85h1nk7204lzn4kglsgh1bka0j237j";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ beautifulsoup4 lxml cssutils future enum34 six ];
|
||||
|
||||
# Tests not included in pypi (?)
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Closed caption converter";
|
||||
homepage = https://github.com/pbs/pycaption;
|
||||
license = with licenses; [ asl20 ];
|
||||
};
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
, pyqt5, numpy, scipy, libarcus, doxygen, gettext, pythonOlder }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "3.3.0";
|
||||
version = "3.4.1";
|
||||
pname = "uranium";
|
||||
format = "other";
|
||||
|
||||
@@ -10,7 +10,7 @@ buildPythonPackage rec {
|
||||
owner = "Ultimaker";
|
||||
repo = "Uranium";
|
||||
rev = version;
|
||||
sha256 = "1rg0l2blndnbdfcgkjc2r29cnjdm009rz8lnc225ilh9d7w1srbb";
|
||||
sha256 = "1r6d65c9xfkn608k6wv3dprpks5h8g2v9mi4a67ifpzyw4y3f0rk";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.5.0";
|
||||
|
||||
25
pkgs/development/python-modules/vega_datasets/default.nix
Normal file
25
pkgs/development/python-modules/vega_datasets/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pandas, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vega_datasets";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1fa672ba89ded093b30c6d59fce10aca3ac7c927df254e588da7b6d14f695181";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pandas ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test vega_datasets --doctest-modules
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python package for offline access to vega datasets";
|
||||
homepage = https://github.com/altair-viz/vega_datasets;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
26
pkgs/development/python-modules/wcwidth/default.nix
Normal file
26
pkgs/development/python-modules/wcwidth/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv, fetchurl, buildPythonPackage }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "wcwidth-${version}";
|
||||
version = "0.1.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/w/wcwidth/${name}.tar.gz";
|
||||
sha256 = "0pn6dflzm609m4r3i8ik5ni9ijjbb5fa3vg1n7hn6vkd49r77wrx";
|
||||
};
|
||||
|
||||
# Checks fail due to missing tox.ini file:
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Measures number of Terminal column cells of wide-character codes";
|
||||
longDescription = ''
|
||||
This API is mainly for Terminal Emulator implementors -- any Python
|
||||
program that attempts to determine the printable width of a string on
|
||||
a Terminal. It is implemented in python (no C library calls) and has
|
||||
no 3rd-party dependencies.
|
||||
'';
|
||||
homepage = https://github.com/jquast/wcwidth;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user