mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-19 15:11:30 +00:00
Merge staging-next into staging
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{ stdenv, fetchurl, fetchPypi, buildPythonPackage, django }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-ranged-response";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "11gr3jpmb5rvg3scv026kjwwkmnxwivgq5ypxadnnc9p58szy7zp";
|
||||
};
|
||||
|
||||
# tests not included in PyPi package, github source is not up to date with 0.2.0
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ django ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A modified FileResponse that returns `Content-Range` headers with the HTTP response, so browsers (read Safari 9+) that request the file, can stream the response properly";
|
||||
homepage = "https://github.com/wearespindle/django-ranged-fileresponse";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mrmebelman ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, six
|
||||
, testfixtures
|
||||
, django
|
||||
, django-ranged-response
|
||||
, pillow
|
||||
, withTTS ? true
|
||||
, flite
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-simple-captcha";
|
||||
version = "0.5.12";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256:1g92sdgcb81r3il34pg0z210cz6wm14k00b558nshai8br1g09gw";
|
||||
extension = "zip";
|
||||
};
|
||||
|
||||
checkInputs = [ testfixtures ];
|
||||
checkPhase = ''
|
||||
cd testproject
|
||||
${python.interpreter} manage.py test captcha
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ django django-ranged-response six pillow ]
|
||||
++ lib.optional withTTS flite;
|
||||
|
||||
meta = with lib; {
|
||||
description = "An extremely simple, yet highly customizable Django application to add captcha images to any Django form";
|
||||
homepage = "https://github.com/mbi/django-simple-captcha";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mrmebelman schmittlauch ];
|
||||
};
|
||||
}
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dkimpy";
|
||||
version = "1.0.1";
|
||||
version = "1.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5d5ba1a15dd8c980d4183989f383bd5522a88dafde4eee5e4eebf9ee6942d94e";
|
||||
sha256 = "19rz48pzz1i5cc896khaqx2hkhcj5hwsklnyynrdgdr5818qjyff";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.2.0";
|
||||
version = "3.0.0";
|
||||
pname = "fints";
|
||||
disabled = isPy27;
|
||||
|
||||
@@ -15,14 +15,9 @@ buildPythonPackage rec {
|
||||
owner = "raphaelm";
|
||||
repo = "python-fints";
|
||||
rev = "v${version}";
|
||||
sha256 = "1gx173dzdprf3jsc7dss0xax8s6l2hr02qg9m5c4rksb3dl5fl8w";
|
||||
sha256 = "00fqgnmv7z6d792ga4cyzn9lrfjf79jplkssm2jbyb0akfggfj7h";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'sepaxml==2.0.*' 'sepaxml~=2.0'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ requests mt-940 sepaxml bleach ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
24
pkgs/development/python-modules/flask-swagger-ui/default.nix
Normal file
24
pkgs/development/python-modules/flask-swagger-ui/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, flask }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flask-swagger-ui";
|
||||
version = "3.20.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3282c770764c8053360f33b2fc120e1d169ecca2138537d0e6e1135b1f9d4ff2";
|
||||
};
|
||||
|
||||
doCheck = false; # there are no tests
|
||||
|
||||
propagatedBuildInputs = [
|
||||
flask
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/sveint/flask-swagger-ui";
|
||||
license = licenses.mit;
|
||||
description = "Swagger UI blueprint for Flask";
|
||||
maintainers = with maintainers; [ vanschelven ];
|
||||
};
|
||||
}
|
||||
@@ -22,30 +22,18 @@
|
||||
, sure
|
||||
, werkzeug
|
||||
, xmltodict
|
||||
, isPy38
|
||||
, parameterized
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "moto";
|
||||
version = "1.3.13";
|
||||
version = "1.3.14";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0rhbjvqi1khp80gfnl3x632kwlpq3k7m8f13nidznixdpa78vm4m";
|
||||
sha256 = "0fm09074qic24h8rw9a0paklygyb7xd0ch4890y4v8lj2pnsxbkr";
|
||||
};
|
||||
|
||||
# 3.8 is not yet support
|
||||
# https://github.com/spulec/moto/pull/2519
|
||||
disabled = isPy38;
|
||||
|
||||
# Backported fix from 1.3.14.dev for compatibility with botocore >= 1.9.198.
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/spulec/moto/commit/e4a4e6183560489e98b95e815b439c7a1cf3566c.diff";
|
||||
sha256 = "1fixr7riimnldiikv33z4jwjgcsccps0c6iif40x8wmpvgcfs0cb";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "jsondiff==1.1.2" "jsondiff~=1.1"
|
||||
@@ -74,13 +62,21 @@ buildPythonPackage rec {
|
||||
xmltodict
|
||||
] ++ lib.optionals isPy27 [ backports_tempfile ];
|
||||
|
||||
checkInputs = [ boto3 freezegun nose sure ];
|
||||
checkInputs = [ boto3 freezegun nose sure parameterized ];
|
||||
|
||||
checkPhase = ''nosetests -v ./tests/ \
|
||||
-e test_invoke_function_from_sns \
|
||||
-e test_invoke_requestresponse_function \
|
||||
-e test_context_manager \
|
||||
-e test_decorator_start_and_stop'';
|
||||
checkPhase = ''
|
||||
nosetests -v ./tests/ \
|
||||
-e test_invoke_function_from_sns \
|
||||
-e test_invoke_requestresponse_function \
|
||||
-e test_context_manager \
|
||||
-e test_decorator_start_and_stop \
|
||||
-e test_invoke_event_function \
|
||||
-e test_invoke_function_from_dynamodb \
|
||||
-e test_invoke_function_from_sqs \
|
||||
-e test_invoke_lambda_error \
|
||||
-e test_invoke_async_function \
|
||||
-e test_passthrough_requests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Allows your tests to easily mock out AWS Services";
|
||||
|
||||
37
pkgs/development/python-modules/notedown/default.nix
Normal file
37
pkgs/development/python-modules/notedown/default.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, lib
|
||||
, nbconvert
|
||||
, nbformat
|
||||
, notebook
|
||||
, pandoc-attributes
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "notedown";
|
||||
version = "1.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "36e033ebbbe5aca0fab031ffaf3611d5bc5c50237df68ff81bb95f8be353a1ee";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
notebook
|
||||
nbconvert
|
||||
nbformat
|
||||
pandoc-attributes
|
||||
six
|
||||
];
|
||||
|
||||
# No tests in pypi source
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/aaren/notedown;
|
||||
description = "Convert IPython Notebooks to markdown (and back)";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = with lib.maintainers; [ vcanadi ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, lib
|
||||
, pandocfilters
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pandoc-attributes";
|
||||
version = "0.1.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "69221502dac74f5df1317011ce62c85a83eef5da3b71c63b1908e98224304a8c";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pandocfilters
|
||||
];
|
||||
|
||||
# No tests in pypi source
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/aaren/pandoc-attributes;
|
||||
description = "An Attribute class to be used with pandocfilters";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = with lib.maintainers; [ vcanadi ];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{ lib
|
||||
{ stdenv
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
@@ -28,7 +29,7 @@ buildPythonPackage rec {
|
||||
|
||||
cmakeFlags = [
|
||||
"-DEIGEN3_INCLUDE_DIR=${eigen}/include/eigen3"
|
||||
] ++ lib.optionals (python.isPy3k) [
|
||||
] ++ lib.optionals (python.isPy3k && !stdenv.cc.isClang) [
|
||||
# Enable some tests only on Python 3. The "test_string_view" test
|
||||
# 'testTypeError: string_view16_chars(): incompatible function arguments'
|
||||
# fails on Python 2.
|
||||
|
||||
@@ -12,9 +12,6 @@ buildPythonPackage rec {
|
||||
sha256 = "7342017cc82dd6178e3b19377389b8a8d1f8b429d9cdb315cfb1094e34a0f526";
|
||||
};
|
||||
|
||||
# Fixes incorrect specified requirement (part of next release)
|
||||
patches = [ ./fix_pytestrunner_req.patch ];
|
||||
|
||||
propagatedBuildInputs = [ wheel setuptools packaging ];
|
||||
checkInputs = [
|
||||
cmake ninja cython codecov coverage six pathpy
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index dd348fa..4de89c6 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -22,7 +22,7 @@ with open('requirements-dev.txt', 'r') as fp:
|
||||
dev_requirements = list(filter(bool, (line.strip() for line in fp)))
|
||||
|
||||
# Require pytest-runner only when running tests
|
||||
-pytest_runner = (['pytest-runner>=2.0,<3dev']
|
||||
+pytest_runner = (['pytest-runner>=2.0']
|
||||
if any(arg in sys.argv for arg in ('pytest', 'test'))
|
||||
else [])
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
diff --git a/sphinxcontrib/tikz.py b/sphinxcontrib/tikz.py
|
||||
index ee21113..a4f4589 100644
|
||||
--- a/sphinxcontrib/tikz.py
|
||||
+++ b/sphinxcontrib/tikz.py
|
||||
@@ -242,7 +242,7 @@ def render_tikz(self, node, libs='', stringsubst=False):
|
||||
tf.write(latex)
|
||||
tf.close()
|
||||
|
||||
- system([self.builder.config.latex_engine, '--interaction=nonstopmode',
|
||||
+ system(['@texLive@/bin/pdflatex', '--interaction=nonstopmode',
|
||||
'tikz-%s.tex' % shasum],
|
||||
self.builder)
|
||||
|
||||
@@ -281,7 +281,7 @@ def render_tikz(self, node, libs='', stringsubst=False):
|
||||
'-sOutputFile=%s' % outfn, '-r' + resolution + 'x' + resolution,
|
||||
'-f', 'tikz-%s.pdf' % shasum], self.builder)
|
||||
elif self.builder.config.tikz_proc_suite == "pdf2svg":
|
||||
- system(['pdf2svg', 'tikz-%s.pdf' % shasum, outfn], self.builder)
|
||||
+ system(['@pdf2svg@/bin/pdf2svg', 'tikz-%s.pdf' % shasum, outfn], self.builder)
|
||||
else:
|
||||
self.builder._tikz_warned = True
|
||||
raise TikzExtError('Error (tikz extension): Invalid configuration '
|
||||
@@ -0,0 +1,38 @@
|
||||
{ lib
|
||||
, substituteAll
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, sphinx
|
||||
, pdf2svg
|
||||
, texLive
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sphinxcontrib-tikz";
|
||||
version = "0.4.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "4f362b11e3c2bd17d5f0f07fec03917c16fc5bbcda6fe31ee137c547ed6b03a3";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./binary-paths.patch;
|
||||
inherit texLive pdf2svg;
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ sphinx ];
|
||||
|
||||
# no tests in package
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "TikZ extension for Sphinx";
|
||||
homepage = https://bitbucket.org/philexander/tikz;
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user