Merge staging-next into staging
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 ];
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user