Merge master into staging-next
This commit is contained in:
@@ -61,6 +61,6 @@ buildPythonPackage rec {
|
||||
description = "Terminal MUA using notmuch mail";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ aepsil0n ];
|
||||
maintainers = with maintainers; [ edibopp ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
, nodejs
|
||||
, packaging
|
||||
, pillow
|
||||
#, pytestCheckHook#
|
||||
, pytest
|
||||
, python
|
||||
, python-dateutil
|
||||
@@ -18,15 +19,25 @@
|
||||
, six
|
||||
, substituteAll
|
||||
, tornado
|
||||
, typing-extensions
|
||||
, pytz
|
||||
, flaky
|
||||
, networkx
|
||||
, beautifulsoup4
|
||||
, requests
|
||||
, nbconvert
|
||||
, icalendar
|
||||
, pandas
|
||||
, pythonImportsCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bokeh";
|
||||
version = "1.4.0";
|
||||
version = "2.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1rywd6c6hi0c6yg18j5zxssjd07a5hafcd21xr3q2yvp3aj3h3f6";
|
||||
sha256 = "d9248bdb0156797abf6d04b5eac581dcb121f5d1db7acbc13282b0609314893a";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -37,13 +48,29 @@ buildPythonPackage rec {
|
||||
})
|
||||
];
|
||||
|
||||
disabled = isPyPy;
|
||||
disabled = isPyPy || isPy27;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pythonImportsCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"bokeh"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pytest
|
||||
pillow
|
||||
selenium
|
||||
pytz
|
||||
flaky
|
||||
networkx
|
||||
beautifulsoup4
|
||||
requests
|
||||
nbconvert
|
||||
icalendar
|
||||
pandas
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -55,14 +82,14 @@ buildPythonPackage rec {
|
||||
tornado
|
||||
numpy
|
||||
packaging
|
||||
typing-extensions
|
||||
]
|
||||
++ lib.optionals ( isPy27 ) [
|
||||
futures
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover -s bokeh/tests
|
||||
'';
|
||||
# This test suite is a complete pain. Somehow it can't find its fixtures.
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Statistical and novel interactive HTML plots for Python";
|
||||
|
||||
@@ -4,14 +4,16 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "celery";
|
||||
version = "4.4.2";
|
||||
version = "4.4.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ps1c6ill7q0m5kzb87hisgshdk3kzpa6cvcjch1d1wa07whp2hh";
|
||||
sha256 = "0zk42fxznrhww0dxak9b6nkfqg02z49zr839k6ql7nk3him7n0y2";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements/default.txt \
|
||||
--replace "kombu>=4.6.10,<4.7" "kombu"
|
||||
substituteInPlace requirements/test.txt \
|
||||
--replace "moto==1.3.7" moto \
|
||||
--replace "pytest>=4.3.1,<4.4.0" pytest
|
||||
@@ -20,9 +22,13 @@ buildPythonPackage rec {
|
||||
# ignore test that's incompatible with pytest5
|
||||
# test_eventlet touches network
|
||||
# test_mongodb requires pymongo
|
||||
# test_multi tries to create directories under /var
|
||||
checkPhase = ''
|
||||
pytest -k 'not restore_current_app_fallback and not msgpack and not on_apply' \
|
||||
pytest -k 'not restore_current_app_fallback and not msgpack and not on_apply and not pytest' \
|
||||
--ignore=t/unit/contrib/test_pytest.py \
|
||||
--ignore=t/unit/concurrency/test_eventlet.py \
|
||||
--ignore=t/unit/bin/test_multi.py \
|
||||
--ignore=t/unit/apps/test_multi.py \
|
||||
--ignore=t/unit/backends/test_mongodb.py
|
||||
'';
|
||||
|
||||
|
||||
@@ -14,8 +14,10 @@ buildPythonPackage rec {
|
||||
checkInputs = [ pytestCheckHook pytestcov ];
|
||||
propagatedBuildInputs = [ flake8 click pyyaml six ];
|
||||
|
||||
disabledTests = lib.optionals isPy36 [
|
||||
# test_cli asserts on exact quoting style of output
|
||||
disabledTests = [
|
||||
"test_cli"
|
||||
] ++ lib.optionals isPy36 [
|
||||
"test_choice_default"
|
||||
];
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPyPy
|
||||
, pytest, pytestcov, pytest-mock, freezegun
|
||||
, jinja2, future, binaryornot, click, whichcraft, poyo, jinja2_time, requests }:
|
||||
, jinja2, future, binaryornot, click, whichcraft, poyo, jinja2_time, requests
|
||||
, python-slugify }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cookiecutter";
|
||||
@@ -16,7 +17,7 @@ buildPythonPackage rec {
|
||||
|
||||
checkInputs = [ pytest pytestcov pytest-mock freezegun ];
|
||||
propagatedBuildInputs = [
|
||||
jinja2 future binaryornot click whichcraft poyo jinja2_time requests
|
||||
jinja2 future binaryornot click whichcraft poyo jinja2_time requests python-slugify
|
||||
];
|
||||
|
||||
# requires network access for cloning git repos
|
||||
|
||||
@@ -7,7 +7,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256:1d4iykcv7cn9j399hczlxm5pzxmqy6d80h3j16dkjwlmv3293b4r";
|
||||
sha256 = "1d4iykcv7cn9j399hczlxm5pzxmqy6d80h3j16dkjwlmv3293b4r";
|
||||
};
|
||||
|
||||
# No tests included
|
||||
|
||||
@@ -25,15 +25,16 @@
|
||||
, fastparquet
|
||||
, testpath
|
||||
, nbconvert
|
||||
, pytest_xdist
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "datashader";
|
||||
version = "0.9.0";
|
||||
version = "0.11.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3a423d61014ae8d2668848edab6c12a6244be6f249570bd7811dd5698d5ff633";
|
||||
sha256 = "05p81aff7x70yj8llclclgz6klvfzqixwxfng6awn3y5scv18w40";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -60,6 +61,7 @@ buildPythonPackage rec {
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytest-benchmark
|
||||
pytest_xdist # not needed
|
||||
flake8
|
||||
nbsmoke
|
||||
fastparquet
|
||||
@@ -69,11 +71,11 @@ buildPythonPackage rec {
|
||||
|
||||
postConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'testpath<0.4'" "'testpath'"
|
||||
--replace "'numba >=0.37.0,<0.49'" "'numba'"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
pytest datashader
|
||||
pytest -n $NIX_BUILD_CORES datashader
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -17,7 +17,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256:1g92sdgcb81r3il34pg0z210cz6wm14k00b558nshai8br1g09gw";
|
||||
sha256 = "1g92sdgcb81r3il34pg0z210cz6wm14k00b558nshai8br1g09gw";
|
||||
extension = "zip";
|
||||
};
|
||||
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Django";
|
||||
version = "2.2.11";
|
||||
version = "2.2.13";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0l0gndky4nwc1jk68b31m583a9g0fhmll903p0xislyyddz3iqk5";
|
||||
sha256 = "103db5gmny6bkq9jgr2m6gdfy1n29bj2v87184y1zgpdmkv71ww4";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optional withGdal
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, numba, numpy, pandas, pytestrunner,
|
||||
thrift, pytest, python-snappy, lz4 }:
|
||||
thrift, pytest, python-snappy, lz4, zstd }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastparquet";
|
||||
version = "0.3.3";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dask";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1vnxr4r0bia2zi9csjw342l507nic6an4hr5xb3a36ggqlbaa0g5";
|
||||
sha256 = "0y89gmcfylxqm8rs1fbirwjzmhcvlfx8fhvkm3ssbj1ivfd5mdlr";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
propagatedBuildInputs = [ numba numpy pandas thrift ];
|
||||
checkInputs = [ pytest python-snappy lz4 ];
|
||||
checkInputs = [ pytest python-snappy lz4 zstd ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A python implementation of the parquet format";
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
{ stdenv
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, flask
|
||||
, flask-silk
|
||||
, future
|
||||
, pathlib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -19,9 +21,11 @@ buildPythonPackage rec {
|
||||
flask
|
||||
flask-silk
|
||||
future
|
||||
] ++ lib.optionals (pythonOlder "3.4") [
|
||||
pathlib
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "The mod_autoindex for Flask";
|
||||
longDescription = ''
|
||||
Flask-AutoIndex generates an index page for your Flask application automatically.
|
||||
|
||||
@@ -16,7 +16,7 @@ buildPythonPackage rec {
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "flit_core";
|
||||
hash = "sha256:a50bcd8bf5785e3a7d95434244f30ba693e794c5204ac1ee908fc07c4acdbf80";
|
||||
sha256 = "a50bcd8bf5785e3a7d95434244f30ba693e794c5204ac1ee908fc07c4acdbf80";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -33,4 +33,4 @@ buildPythonPackage rec {
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = [ lib.maintainers.fridh ];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,22 +1,42 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, Babel, celery, importlib-metadata, pytz, tornado, mock }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, Babel
|
||||
, celery
|
||||
, future
|
||||
, humanize
|
||||
, importlib-metadata
|
||||
, mock
|
||||
, pytz
|
||||
, tornado
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flower";
|
||||
version = "0.9.4";
|
||||
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "25782840f7ffc25dcf478d94535a2d815448de4aa6c71426be6abfa9ca417448";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ Babel celery importlib-metadata pytz tornado ];
|
||||
|
||||
# flower and humanize aren't listed in setup.py but imported
|
||||
propagatedBuildInputs = [
|
||||
Babel
|
||||
celery
|
||||
future
|
||||
importlib-metadata
|
||||
pytz
|
||||
tornado
|
||||
humanize
|
||||
];
|
||||
|
||||
checkInputs = [ mock ];
|
||||
|
||||
|
||||
meta = with lib; {
|
||||
description = "Celery Flower";
|
||||
homepage = "https://github.com/mher/flower";
|
||||
license = licenses.bsdOriginal;
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = [ maintainers.arnoldfarkas ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ buildPythonPackage rec {
|
||||
owner = "kbr";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256:17z4shs56ci9mxmilppv5xy9gbnbp6p1h2ms6x55nkvwndacrp7x";
|
||||
sha256 = "17z4shs56ci9mxmilppv5xy9gbnbp6p1h2ms6x55nkvwndacrp7x";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
@@ -22,7 +22,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "${meta.homepage}/src/gst-python/${pname}-${version}.tar.xz";
|
||||
sha256 = "II3zFI1z2fQW0BZWRzdYXY6nY9kSAXMtRLX+aIxiiKg=";
|
||||
sha256 = "1a48ca66izmm8hnp608jv5isg3jxb0vlfmhns0bg9nbkilag7390";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -13,17 +13,22 @@
|
||||
, networkx
|
||||
, streamz
|
||||
, colorcet
|
||||
, pythonImportsCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hvplot";
|
||||
version = "0.5.2";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "408a7756b980df148d1f2fd59cd690ad4870d7e3c3c5e46c6b5c2e71fc6a097c";
|
||||
sha256 = "8fcf2f251bd9d4b0390d9c272c992aa75e11174829e416a22de8fba38acc1ce9";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pythonImportsCheckHook
|
||||
];
|
||||
|
||||
checkInputs = [ pytest parameterized nbsmoke flake8 coveralls xarray networkx streamz ];
|
||||
propagatedBuildInputs = [
|
||||
bokeh
|
||||
@@ -39,6 +44,10 @@ buildPythonPackage rec {
|
||||
# many tests require a network connection
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"hvplot.pandas"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A high-level plotting API for the PyData ecosystem built on HoloViews";
|
||||
homepage = "https://hvplot.pyviz.org";
|
||||
|
||||
@@ -18,7 +18,7 @@ buildPythonPackage rec {
|
||||
owner = "HypothesisWorks";
|
||||
repo = "hypothesis-python";
|
||||
rev = "hypothesis-python-${version}";
|
||||
hash = "sha256:1qcpcrk6892hzyjsdr581pw6i4fj9035nv89mcjrcrzcmycdlfds";
|
||||
sha256 = "1qcpcrk6892hzyjsdr581pw6i4fj9035nv89mcjrcrzcmycdlfds";
|
||||
};
|
||||
|
||||
postUnpack = "sourceRoot=$sourceRoot/hypothesis-python";
|
||||
@@ -42,4 +42,4 @@ buildPythonPackage rec {
|
||||
homepage = "https://github.com/HypothesisWorks/hypothesis";
|
||||
license = licenses.mpl20;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ buildPythonPackage rec {
|
||||
owner = "HypothesisWorks";
|
||||
repo = "hypothesis-python";
|
||||
rev = "hypothesis-python-${version}";
|
||||
hash = "sha256:1ca2dwih65s4r8vazwqm963ywngdr3v854ldnfyny7bvx1v28m8k";
|
||||
sha256 = "1ca2dwih65s4r8vazwqm963ywngdr3v854ldnfyny7bvx1v28m8k";
|
||||
};
|
||||
|
||||
postUnpack = "sourceRoot=$sourceRoot/hypothesis-python";
|
||||
|
||||
@@ -9,14 +9,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jc";
|
||||
version = "1.10.12";
|
||||
version = "1.11.1";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kellyjonbrazil";
|
||||
repo = "jc";
|
||||
rev = "v${version}";
|
||||
sha256 = "04gggx47acckyd96cginrw7ldw7fqgkiggk9fxdij2hwi03mk4n4";
|
||||
sha256 = "0qackvhs35npgnga5riclnwqdwasc0kba48pwnrfxf0hm2i0kbgp";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ ruamel_yaml xmltodict pygments ];
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mautrix";
|
||||
version = "0.4.2";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0f8pzi7ip82p7hn6d9xrgp5wsl4s3w6gmjsgb8gjy2606f7czqyg";
|
||||
sha256 = "0hcm2hwryfr6js33zcl2k95wbjrgcj89pi90lka0hjw9vs9bmdz6";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,19 +1,34 @@
|
||||
{ lib, buildPythonPackage, isPy3k, fetchPypi
|
||||
, urllib3, future, python-dateutil , pytz, faker, mock, nose }:
|
||||
, configparser
|
||||
, faker
|
||||
, future
|
||||
, mock
|
||||
, nose
|
||||
, python-dateutil
|
||||
, pytz
|
||||
, pytestCheckHook
|
||||
, urllib3
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "minio";
|
||||
version = "5.0.10";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6ecb7637a35f806733e9d112eacfa599a58d7c3d4698fda2b5c86fff5d34b417";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
propagatedBuildInputs = [
|
||||
configparser
|
||||
future
|
||||
python-dateutil
|
||||
pytz
|
||||
urllib3
|
||||
];
|
||||
|
||||
checkInputs = [ faker mock nose ];
|
||||
propagatedBuildInputs = [ urllib3 python-dateutil pytz future ];
|
||||
checkInputs = [ faker mock nose pytestCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple APIs to access any Amazon S3 compatible object storage server";
|
||||
|
||||
@@ -11,7 +11,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version pname;
|
||||
hash = "sha256:18fcb356c631e9cc27fa7019f6ff6021707e34b9ce3a3b7dc815661288709921";
|
||||
sha256 = "18fcb356c631e9cc27fa7019f6ff6021707e34b9ce3a3b7dc815661288709921";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
@@ -27,4 +27,4 @@ buildPythonPackage rec {
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, dateutil, requests, pytz, pyproj , pytest } :
|
||||
{ lib, buildPythonPackage, fetchPypi, dateutil, requests, pytz, pyproj , pytest, pyyaml } :
|
||||
buildPythonPackage rec {
|
||||
pname = "OWSLib";
|
||||
version = "0.19.2";
|
||||
@@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ dateutil pyproj pytz requests ];
|
||||
propagatedBuildInputs = [ dateutil pyproj pytz requests pyyaml ];
|
||||
|
||||
# 'tests' dir not included in pypy distribution archive.
|
||||
doCheck = false;
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "panel";
|
||||
version = "0.8.3";
|
||||
version = "0.9.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0iz20k7mqn0560r4358yrzvrrfn00h8s6dim7p7y4icpgjw2mjnb";
|
||||
sha256 = "53340615f30f67f3182793695ebe52bf25e7bbb0751aba6f29763244350d0f42";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||
owner = "papis";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "kzA8nlglbjHDPEB7HRAY2dza1Umn/OYUu+ydbA1OJ5Y=";
|
||||
sha256 = "15i79q6nr7gcpcafdz5797axmp6r3081sys07k1k2vi5b2g3qc4k";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -21,6 +21,6 @@ buildPythonPackage rec {
|
||||
homepage = "https://github.com/python-parsy/parsy";
|
||||
description = "Easy-to-use parser combinators, for parsing in pure Python";
|
||||
license = [ licenses.mit ];
|
||||
maintainers = with maintainers; [ aepsil0n ];
|
||||
maintainers = with maintainers; [ edibopp ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||
owner = "pypa";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256:0s9z72cpa15p2bp7zq1lid8k2ykrznfzjwpq5f41v3f30faraxg7";
|
||||
sha256 = "0s9z72cpa15p2bp7zq1lid8k2ykrznfzjwpq5f41v3f30faraxg7";
|
||||
name = "${pname}-${version}-source";
|
||||
};
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
, identify
|
||||
, importlib-metadata
|
||||
, importlib-resources
|
||||
, isPy27
|
||||
, nodeenv
|
||||
, python
|
||||
, six
|
||||
@@ -15,16 +16,18 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pre-commit";
|
||||
version = "1.21.0";
|
||||
version = "2.4.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "pre_commit";
|
||||
sha256 = "0l5qg1cw4a0670m96s0ryy5mqz5aslfrrnwpriqgmrnsgdixhj4g";
|
||||
sha256 = "1l0lcl3l2544m2k8jlmblfsjn0p2hdxrzzwy646xpvp0rcs2wgkh";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./hook-tmpl-use-the-hardcoded-path-to-pre-commit.patch
|
||||
./languages-use-the-hardcoded-path-to-python-binaries.patch
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -36,9 +39,8 @@ buildPythonPackage rec {
|
||||
six
|
||||
toml
|
||||
virtualenv
|
||||
importlib-metadata
|
||||
] ++ lib.optional (pythonOlder "3.7") importlib-resources
|
||||
++ lib.optional (pythonOlder "3.2") futures;
|
||||
] ++ lib.optional (pythonOlder "3.8") importlib-metadata
|
||||
++ lib.optional (pythonOlder "3.7") importlib-resources;
|
||||
|
||||
# slow and impure
|
||||
doCheck = false;
|
||||
@@ -46,6 +48,10 @@ buildPythonPackage rec {
|
||||
preFixup = ''
|
||||
substituteInPlace $out/${python.sitePackages}/pre_commit/resources/hook-tmpl \
|
||||
--subst-var-by pre-commit $out
|
||||
substituteInPlace $out/${python.sitePackages}/pre_commit/languages/python.py \
|
||||
--subst-var-by virtualenv ${virtualenv}
|
||||
substituteInPlace $out/${python.sitePackages}/pre_commit/languages/node.py \
|
||||
--subst-var-by nodeenv ${nodeenv}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -1,25 +1,15 @@
|
||||
From d9e6999e32112602ec276634cb004eda3ca64ec3 Mon Sep 17 00:00:00 2001
|
||||
From: "Wael M. Nasreddine" <wael.nasreddine@gmail.com>
|
||||
Date: Mon, 13 Jan 2020 11:04:58 -0800
|
||||
Subject: [PATCH] hook-tmpl: use the hardcoded path to pre-commit, if found
|
||||
|
||||
---
|
||||
pre_commit/resources/hook-tmpl | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/pre_commit/resources/hook-tmpl b/pre_commit/resources/hook-tmpl
|
||||
index 213d16e..3a99211 100755
|
||||
index 299144e..6d12543 100755
|
||||
--- a/pre_commit/resources/hook-tmpl
|
||||
+++ b/pre_commit/resources/hook-tmpl
|
||||
@@ -107,6 +107,8 @@ def _exe() -> Tuple[str, ...]:
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
+ if os.path.isfile('@pre-commit@/bin/pre-commit') and os.access('@pre-commit@/bin/pre-commit', os.X_OK):
|
||||
+ return ('@pre-commit@/bin/pre-commit', 'run')
|
||||
if distutils.spawn.find_executable('pre-commit'):
|
||||
return ('pre-commit', 'run')
|
||||
|
||||
--
|
||||
2.23.1
|
||||
@@ -25,8 +25,8 @@ ARGS.append('--')
|
||||
ARGS.extend(sys.argv[1:])
|
||||
|
||||
DNE = '`pre-commit` not found. Did you forget to activate your virtualenv?'
|
||||
-if os.access(INSTALL_PYTHON, os.X_OK):
|
||||
- CMD = [INSTALL_PYTHON, '-mpre_commit']
|
||||
+if os.access('@pre-commit@/bin/pre-commit', os.X_OK):
|
||||
+ CMD = ['@pre-commit@/bin/pre-commit']
|
||||
elif which('pre-commit'):
|
||||
CMD = ['pre-commit']
|
||||
else:
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
diff --git a/pre_commit/languages/node.py b/pre_commit/languages/node.py
|
||||
index 26f4919..4885ec1 100644
|
||||
--- a/pre_commit/languages/node.py
|
||||
+++ b/pre_commit/languages/node.py
|
||||
@@ -82,7 +82,7 @@ def install_environment(
|
||||
envdir = fr'\\?\{os.path.normpath(envdir)}'
|
||||
with clean_path_on_failure(envdir):
|
||||
cmd = [
|
||||
- sys.executable, '-mnodeenv', '--prebuilt', '--clean-src', envdir,
|
||||
+ '@nodeenv@/bin/nodeenv', '--prebuilt', '--clean-src', envdir,
|
||||
]
|
||||
if version != C.DEFAULT:
|
||||
cmd.extend(['-n', version])
|
||||
diff --git a/pre_commit/languages/python.py b/pre_commit/languages/python.py
|
||||
index e17376e..0c1d2ab 100644
|
||||
--- a/pre_commit/languages/python.py
|
||||
+++ b/pre_commit/languages/python.py
|
||||
@@ -204,7 +204,7 @@ def install_environment(
|
||||
) -> None:
|
||||
envdir = prefix.path(helpers.environment_dir(ENVIRONMENT_DIR, version))
|
||||
python = norm_version(version)
|
||||
- venv_cmd = (sys.executable, '-mvirtualenv', envdir, '-p', python)
|
||||
+ venv_cmd = ('@virtualenv@/bin/virtualenv', envdir, '-p', python)
|
||||
install_cmd = ('python', '-mpip', 'install', '.', *additional_dependencies)
|
||||
|
||||
with clean_path_on_failure(envdir):
|
||||
@@ -1,18 +1,23 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, pyparsing }:
|
||||
{ stdenv
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, pyparsing
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "PuLP";
|
||||
version = "2.0";
|
||||
version = "2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "fb0b0e8073aa82f3459c4241b9625e0ccd26c0838ad8253c6bc67e041901b765";
|
||||
sha256 = "06swbi7wygh7y0kxc85q1pdhzk662375d9a5jnahgr76hkwwkybn";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyparsing ];
|
||||
|
||||
# only one test that requires an extra
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "pulp" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/coin-or/pulp";
|
||||
|
||||
@@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||
owner = "PyGithub";
|
||||
repo = "PyGithub";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-8uQCFiw1ByPOX8ZRUlSLYPIibjmd19r/JtTnmQdz5cM=";
|
||||
sha256 = "1hz5fc3rkryl4vzxmmwx75p25wk0ida54lf6bz7261rm5hb05r7j";
|
||||
};
|
||||
|
||||
checkInputs = [ httpretty parameterized pytestCheckHook ];
|
||||
|
||||
@@ -7,7 +7,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "UTbBv5GeEB1OyQGiduhupg5Ygaj/d2PjVvGYQOX/4d0=";
|
||||
sha256 = "1pg1zzjl167iavin6xzzm20mh3m6dvl7d8h1r571s44yj6zw2dji";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
@@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "hoPS37W6qeUBqaZO66XCwRF+rbeBqxzXqdJVg0r22u8=";
|
||||
sha256 = "1vysyr586mfjm7biraw1nynpw4f1qajynkm6m40ybadsnpgx50w6";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, pytestCheckHook
|
||||
, pytest
|
||||
, inflection
|
||||
, factory_boy
|
||||
, pytestcache
|
||||
, pytestcov
|
||||
, pytestpep8
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-factoryboy";
|
||||
version = "2.0.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pytest-dev";
|
||||
repo = "pytest-factoryboy";
|
||||
rev = version;
|
||||
sha256 = "0m1snyybq2k51khlydhisq300vzys897vdbsicph628iran950hn";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ factory_boy inflection pytest ];
|
||||
|
||||
# The project uses tox, which we can't. So we simply run pytest manually.
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
pytestcache
|
||||
pytestcov
|
||||
pytestpep8
|
||||
];
|
||||
pytestFlagsArray = [ "--ignore=docs" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Integration of factory_boy into the pytest runner.";
|
||||
homepage = "https://pytest-factoryboy.readthedocs.io/en/latest/";
|
||||
maintainers = with maintainers; [ winpat ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
@@ -11,7 +11,7 @@ buildPythonPackage rec {
|
||||
owner = "palantir";
|
||||
repo = "python-jsonrpc-server";
|
||||
rev = version;
|
||||
sha256 = "sha256:027sx5pv4i9a192kr00bjjcxxprh2xyr8q5372q8ghff3xryk9dd";
|
||||
sha256 = "027sx5pv4i9a192kr00bjjcxxprh2xyr8q5372q8ghff3xryk9dd";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -8,7 +8,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256:1rhpg0jb08v0gd7f19jjiwlcdnxpmqi1fhvw7r4s9avddi4kvx5k";
|
||||
sha256 = "1rhpg0jb08v0gd7f19jjiwlcdnxpmqi1fhvw7r4s9avddi4kvx5k";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pytest ];
|
||||
|
||||
@@ -23,7 +23,7 @@ let
|
||||
owner = "pypa";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256:1f6bp3qy5zvykimadk8k11k3629hmnwlw2cfw4vwcsvdarhig673";
|
||||
sha256 = "1f6bp3qy5zvykimadk8k11k3629hmnwlw2cfw4vwcsvdarhig673";
|
||||
name = "${pname}-${version}-source";
|
||||
};
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ buildPythonPackage rec {
|
||||
src = fetchPypi {
|
||||
pname = "Sphinx";
|
||||
inherit version;
|
||||
hash = "sha256:0wpmqfx4mxv5kv9xxd6wyfsm8vcnp8p99h14q7b6if2mv69gvvb2";
|
||||
sha256 = "0wpmqfx4mxv5kv9xxd6wyfsm8vcnp8p99h14q7b6if2mv69gvvb2";
|
||||
};
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "telethon";
|
||||
version = "1.10.10";
|
||||
version = "1.14.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "Telethon";
|
||||
sha256 = "0zm3577f1l5g0i0gcxr3s0nrqy0i81ppr6vp31p550vvnlnkjsqj";
|
||||
sha256 = "1fg12gcg6ca7rjh7m3g48m30cx4aaw5g09855nlyz2sa1kw3gfyq";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,22 +1,23 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy27
|
||||
, pbr, six, futures, monotonic, setuptools_scm
|
||||
, pytest, sphinx, tornado
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy27, isPy3k
|
||||
, pbr, six, futures, monotonic, typing, setuptools_scm
|
||||
, pytest, sphinx, tornado, typeguard
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tenacity";
|
||||
version = "6.0.0";
|
||||
version = "6.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "72f397c2bb1887e048726603f3f629ea16f88cb3e61e4ed3c57e98582b8e3571";
|
||||
sha256 = "16ikf6n6dw1kzncs6vjc4iccl76f9arln59jhiiai27lzbkr1bi9";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pbr setuptools_scm ];
|
||||
propagatedBuildInputs = [ six ]
|
||||
++ lib.optionals isPy27 [ futures monotonic ];
|
||||
++ lib.optionals isPy27 [ futures monotonic typing ];
|
||||
|
||||
checkInputs = [ pytest sphinx tornado ];
|
||||
checkInputs = [ pytest sphinx tornado ]
|
||||
++ lib.optionals isPy3k [ typeguard ];
|
||||
checkPhase = if isPy27 then ''
|
||||
pytest --ignore='tenacity/tests/test_asyncio.py'
|
||||
'' else ''
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zope-hookable";
|
||||
version = "4.2.0";
|
||||
version = "5.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "zope.hookable";
|
||||
inherit version;
|
||||
sha256 = "c1df3929a3666fc5a0c80d60a0c1e6f6ef97c7f6ed2f1b7cf49f3e6f3d4dde15";
|
||||
sha256 = "0hc82lfr7bk53nvbxvjkibkarngyrzgfk2i6bg8wshl0ly0pdl19";
|
||||
};
|
||||
|
||||
checkInputs = [ zope_testing ];
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
, coverage
|
||||
, zope_testrunner
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -15,6 +17,8 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
checkInputs = [ coverage zope_testrunner ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/zopefoundation/zope.i18nmessageid";
|
||||
description = "Message Identifiers for internationalization";
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, zope_event
|
||||
, zope_component
|
||||
, zope_interface
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -16,6 +18,15 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ zope_event zope_component ];
|
||||
|
||||
# namespace colides with local directory
|
||||
doCheck = false;
|
||||
|
||||
# zope uses pep 420 namespaces for python3, doesn't work with nix + python2
|
||||
pythonImportsCheck = stdenv.lib.optionals isPy3k [
|
||||
"zope.lifecycleevent"
|
||||
"zope.interface"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/zopefoundation/zope.lifecycleevent";
|
||||
description = "Object life-cycle events";
|
||||
|
||||
Reference in New Issue
Block a user