Merge branch 'staging-next' into staging

This commit is contained in:
Jan Tojnar
2019-11-11 22:28:32 +01:00
34 changed files with 354 additions and 253 deletions

View File

@@ -1,31 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi
, iowait, psutil, pyzmq, tornado, mock }:
buildPythonPackage rec {
pname = "circus";
version = "0.15.0";
src = fetchPypi {
inherit pname version;
sha256 = "d1603cf4c4f620ce6593d3d2a67fad25bf0242183ea24110d8bb1c8079c55d1b";
};
postPatch = ''
# relax version restrictions to fix build
substituteInPlace setup.py \
--replace "pyzmq>=13.1.0,<17.0" "pyzmq>13.1.0" \
--replace "tornado>=3.0,<5.0" "tornado>=3.0"
'';
checkInputs = [ mock ];
doCheck = false; # weird error
propagatedBuildInputs = [ iowait psutil pyzmq tornado ];
meta = with stdenv.lib; {
description = "A process and socket manager";
homepage = "https://github.circus.com/circus-tent/circus";
license = licenses.asl20;
};
}

View File

@@ -20,16 +20,16 @@
buildPythonPackage rec {
pname = "datasette";
version = "0.29.3";
version = "0.30.2";
src = fetchFromGitHub {
owner = "simonw";
repo = "datasette";
rev = version;
sha256 = "0cib7pd4z240ncck0pskzvizblhwkr42fsjpd719wdxy4scs7yqa";
sha256 = "07swnpz4c7vzlc69vavs1xvbhr5fa8g63kyfj1hf3zafskgjnzwy";
};
buildInputs = [ pytestrunner ];
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [
click
@@ -57,15 +57,19 @@ buildPythonPackage rec {
--replace "Sanic==0.7.0" "Sanic" \
--replace "hupper==1.0" "hupper" \
--replace "pint~=0.8.1" "pint" \
--replace "pluggy~=0.12.0" "pint" \
--replace "Jinja2==2.10.1" "Jinja2" \
--replace "uvicorn~=0.8.4" "uvicorn"
'';
# many tests require network access
# test_black fails on darwin
checkPhase = ''
pytest --ignore tests/test_api.py \
--ignore tests/test_csv.py \
--ignore tests/test_html.py
--ignore tests/test_html.py \
--ignore tests/test_black.py \
-k 'not facet'
'';
meta = with lib; {

View File

@@ -3,7 +3,6 @@
, fetchPypi
, enum34
, google_api_core
, pytest
, mock
}:
@@ -16,11 +15,13 @@ buildPythonPackage rec {
sha256 = "f33aea6721d453901ded268dee61a01ab77d4cd215a76edc3cc61b6028299d3e";
};
checkInputs = [ pytest mock ];
checkInputs = [ mock ];
propagatedBuildInputs = [ enum34 google_api_core ];
# pytest seems to pick up some file which overrides PYTHONPATH
checkPhase = ''
pytest tests/unit
cd tests/unit
python -m unittest discover
'';
meta = with stdenv.lib; {

View File

@@ -0,0 +1,28 @@
{ lib, fetchFromGitHub, buildPythonPackage, six
, flake8, pep8-naming, pytest, pytestcov, pytestpep8 }:
buildPythonPackage rec {
pname = "jsonlines";
version = "1.2.0";
src = fetchFromGitHub {
owner = "wbolster";
repo = pname;
rev = version;
sha256 = "1f8zsqy8p9a41gqg2a5x7sppc5qhhq7gw58id2aigb270yxzs7jw";
};
propagatedBuildInputs = [ six ];
checkInputs = [ flake8 pep8-naming pytest pytestcov pytestpep8 ];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Python library to simplify working with jsonlines and ndjson data";
homepage = https://github.com/wbolster/jsonlines;
maintainers = with maintainers; [ sondr3 ];
license = licenses.bsd3;
};
}

View File

@@ -6,6 +6,7 @@
, pythonOlder
, requests
, pytest
, pyjson5
}:
buildPythonPackage rec {
@@ -19,7 +20,7 @@ buildPythonPackage rec {
};
checkInputs = [ requests pytest ];
propagatedBuildInputs = [ notebook jsonschema ];
propagatedBuildInputs = [ notebook jsonschema pyjson5 ];
# test_listing test fails
# this is a new package and not all tests pass

View File

@@ -0,0 +1,26 @@
{ buildPythonPackage, lib, nose, fetchFromGitHub }:
buildPythonPackage rec {
pname = "pyjson5";
version = "0.8.5";
src = fetchFromGitHub {
owner = "dpranke";
repo = pname;
rev = "v${version}";
sha256 = "0nyngj18jlkgvm1177lc3cj47wm4yh3dqigygvcvw7xkyryafsqn";
};
doCheck = true;
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
meta = with lib; {
description = "Python implementation of the JSON5 data format";
license = licenses.asl20;
homepage = "https://github.com/dpranke/pyjson5";
maintainers = with maintainers; [ isgy ];
};
}

View File

@@ -1,8 +1,10 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, mock
, pytest
, selectors2
}:
buildPythonPackage rec {
@@ -14,6 +16,8 @@ buildPythonPackage rec {
sha256 = "0xndv47iwc9k8cp5r9r1z3r0xww0r5x5b7qsmn39gk2gsg0119c6";
};
propagatedBuildInputs = lib.optionals isPy27 [ selectors2 ];
checkInputs = [ mock pytest ];
checkPhase = ''
@@ -25,4 +29,4 @@ buildPythonPackage rec {
homepage = https://github.com/minrk/wurlitzer;
license = lib.licenses.mit;
};
}
}