Merge branch 'staging-next' into staging

This commit is contained in:
Vladimír Čunát
2019-05-26 09:48:55 +02:00
717 changed files with 15953 additions and 13514 deletions

View File

@@ -0,0 +1,63 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, substituteAll
, fetchpatch
, nose
, six
, graphviz
, fontconfig
}:
buildPythonPackage rec {
pname = "anytree";
version = "2.6.0";
src = fetchFromGitHub {
owner = "c0fec0de";
repo = pname;
rev = version;
sha256 = "1k3yj9h3ssjlz57r4g1qzxvprxjp7n92vms9fv0d46pigylxm5i3";
};
patches = [
(substituteAll {
src = ./graphviz.patch;
inherit graphviz;
})
# Fix tests python3.7
# See: https://github.com/c0fec0de/anytree/pull/85
(fetchpatch {
url = "https://github.com/c0fec0de/anytree/commit/dd1b3d325546fef7436711e4cfea9a5fb61daaf8.patch";
sha256 = "1dpa2jh2kakfaapnqrz03frb67q5fwxzc8c70i6nv1b01i9xw0bn";
})
];
checkInputs = [
nose
];
propagatedBuildInputs = [
six
];
# Fontconfig error: Cannot load default config file
preCheck = ''
export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf
'';
checkPhase = ''
runHook preCheck
nosetests
runHook postCheck
'';
meta = with lib; {
description = "Powerful and Lightweight Python Tree Data Structure";
homepage = https://github.com/c0fec0de/anytree;
license = licenses.asl20;
maintainers = [ maintainers.worldofpeace ];
};
}

View File

@@ -0,0 +1,13 @@
diff --git a/anytree/exporter/dotexporter.py b/anytree/exporter/dotexporter.py
index 9c10a68..209a952 100644
--- a/anytree/exporter/dotexporter.py
+++ b/anytree/exporter/dotexporter.py
@@ -228,7 +228,7 @@ class DotExporter(object):
for line in self:
dotfile.write(("%s\n" % line).encode("utf-8"))
dotfile.flush()
- cmd = ["dot", dotfilename, "-T", fileformat, "-o", filename]
+ cmd = ["@graphviz@/bin/dot", dotfilename, "-T", fileformat, "-o", filename]
check_call(cmd)
try:
remove(dotfilename)

View File

@@ -3,11 +3,11 @@
}:
buildPythonPackage rec {
pname = "argcomplete";
version = "1.9.5";
version = "1.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "94423d1a56cdec2ef47699e02c9a48cf8827b9c4465b836c0cefb30afe85e59a";
sha256 = "1hdysr9z28sgwv47mivf4iyr1sg19hgfz349dghgdlk3rkl6v0s5";
};
doCheck = false; # bash-completion test fails with "compgen: command not found".

View File

@@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "asciimatics";
version = "1.10.0";
version = "1.11.0";
src = fetchPypi {
inherit pname version;
sha256 = "9101b0b6885542f324980bbe13a772475cd6a12678f601228eaaea412db919ab";
sha256 = "132y3gc0dj9vmgajmzz2fyc3icrrgsvynwfl0g31bylm7h9p220x";
};
nativeBuildInputs = [

View File

@@ -5,19 +5,19 @@
buildPythonPackage rec {
pname = "astroid";
version = "2.1.0";
version = "2.2.5";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "08hz675knh4294bancdapql392fmbjyimhbyrmfkz1ka7l035c1m";
sha256 = "1x5c8fiqa18frwwfdsw41lpqsyff3w4lxvjx9d5ccs4zfkhy2q35";
};
# From astroid/__pkginfo__.py
propagatedBuildInputs = [ lazy-object-proxy six wrapt ]
++ lib.optional (pythonOlder "3.5") typing
++ lib.optional (pythonOlder "3.7" && !isPyPy) typed-ast;
++ lib.optional (!isPyPy) typed-ast;
checkInputs = [ pytestrunner pytest ];

View File

@@ -2,13 +2,13 @@
buildPythonPackage rec {
pname = "asynctest";
version = "0.12.4";
version = "0.13.0";
disabled = pythonOlder "3.4";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "ade427a711d18016f35fb0c5d412f0ed63fb074a6084b67ff2dad48f50b0d6ca";
sha256 = "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62";
};
postPatch = ''

View File

@@ -10,14 +10,14 @@
buildPythonPackage rec {
pname = "aws-lambda-builders";
version = "0.2.1";
version = "0.3.0";
# No tests available in PyPI tarball
src = fetchFromGitHub {
owner = "awslabs";
repo = "aws-lambda-builders";
rev = "v${version}";
sha256 = "1pbi6572q1nqs2wd7jx9d5vgf3rqdsqlaz4v8fqvl23wfb2c4vpd";
sha256 = "1c3r3iz29s68mlmdsxbl65x5zqx25b89d40rir6729ck4gll4dyd";
};
# Package is not compatible with Python 3.5

View File

@@ -0,0 +1,38 @@
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, cython
, hypothesis
, numpy
, pytest
}:
buildPythonPackage rec {
pname = "blis";
version = "0.2.4";
src = fetchPypi {
inherit pname version;
sha256 = "0c5hd0bim9134sk8wb31cqzvi9c380rbl5zwjiwrq8nnix8a2k1d";
};
nativeBuildInputs = [
cython
];
checkInputs = [
cython
hypothesis
numpy
pytest
];
meta = with stdenv.lib; {
description = "BLAS-like linear algebra library";
homepage = https://github.com/explosion/cython-blis;
license = licenses.mit;
maintainers = with maintainers; [ danieldk ];
};
}

View File

@@ -1,21 +1,14 @@
{ stdenv, fetchPypi, fetchpatch, buildPythonPackage, base58, ecdsa, pycryptodome, requests, six }:
{ stdenv, fetchPypi, buildPythonPackage, base58, ecdsa, pycryptodome, requests, six }:
buildPythonPackage rec {
pname = "block-io";
version = "1.1.9";
version = "1.1.10";
src = fetchPypi {
inherit pname version;
sha256 = "4909d58b32ab7f93d3cd83fa4bbe4edef42ab7566f016bdb6a405a0d8b1907c9";
sha256 = "ba2e750085d9da4d1567932f3f719974fdc3f02649ee0d5c2f85fce592208723";
};
patches = [
(fetchpatch {
url = "https://github.com/BlockIo/block_io-python/commit/8ec0a0cd1afcfcb439d6dc306d8497dd9e4a0993.patch";
sha256 = "1i6c153wvkr5ncm3cpn34faxvavz534x5kndwn4adlaxlzq30snn";
})
];
propagatedBuildInputs = [
base58
ecdsa
@@ -24,6 +17,11 @@ buildPythonPackage rec {
six
];
preConfigure = ''
substituteInPlace setup.py \
--replace "ecdsa==0.13" "ecdsa>=0.13"
'';
# Tests needs a BlockIO API key to run properly
# https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18
doCheck = false;

View File

@@ -1,4 +1,4 @@
{ stdenv, lib, buildPythonPackage, /*fetchPypi,*/ fetchFromGitHub, makeWrapper, isPy3k,
{ stdenv, lib, buildPythonPackage, fetchPypi, makeWrapper, isPy3k,
python, twisted, jinja2, zope_interface, future, sqlalchemy,
sqlalchemy_migrate, dateutil, txaio, autobahn, pyjwt, pyyaml, treq,
txrequests, txgithub, pyjade, boto3, moto, mock, python-lz4, setuptoolsTrial,
@@ -25,21 +25,12 @@ let
package = buildPythonPackage rec {
pname = "buildbot";
version = "2.1.0";
version = "2.3.0";
/*src = fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "1745hj9s0c0fcdjv6w05bma76xqg1fv42v0dslmi4d8yz9phf37w";
};*/
# Temporarily use GitHub source because PyPi archive is missing some files
# needed for the tests to pass. This has been fixed upstream.
# See: https://github.com/buildbot/buildbot/commit/30f5927cf9a80f98ed909241a149469dec3ce68d
src = fetchFromGitHub {
owner = "buildbot";
repo = "buildbot";
rev = "v${version}";
sha256 = "022ybhdvp0hp2z0cwgx7n41jyh56bpxj3fwm4z7ppzj1qhm7lb65";
} + "/master";
sha256 = "1fdahbpihs93pj640y2079yilca6w7vlwirfcz221885ih148257";
};
propagatedBuildInputs = [
# core

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "buildbot-pkg";
version = "2.1.0";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "03lv97q4pp2izjfbwfv4zmf2fyiz7jyp537bi3gc6rhfbrfgib1i";
sha256 = "1ajgvnhwvryi10q9bklpfazi7vxw2my9jlqgwnjccycbr6yznzsw";
};
postPatch = ''

View File

@@ -11,7 +11,7 @@
src = fetchPypi {
inherit pname version format;
python = "py3";
sha256 = "011sagw8zp1z12vzkxi44w3w2lbxncz5yahkrbxj8hp6iwfzfm5v";
sha256 = "134b8y498bq5fp4863hj9058wr7mcw0xgl74br0f1dy9n7jdcl39";
};
meta = with lib; {
@@ -28,7 +28,7 @@
src = fetchPypi {
inherit pname version;
sha256 = "11gz4ry1law3l64ii383cj5fnbw9409czp2ybzkqafr4xi1qbk9h";
sha256 = "1yh8xij3wizz0f88chjpdijm7i35ql87g84ph3f76sqyr6aj6ckw";
};
propagatedBuildInputs = [ buildbot-pkg ];
@@ -48,7 +48,7 @@
src = fetchPypi {
inherit pname version;
sha256 = "0w4iwpj1rg20fbli0ppqz70l1mc9ilg0crq8g3xrf29f9z8d1w27";
sha256 = "04iihy1s9r4n5jlk57pdjy3yvp6zym2iv2bgqjhw6fy0hff5j8ys";
};
propagatedBuildInputs = [ buildbot-pkg ];
@@ -68,7 +68,7 @@
src = fetchPypi {
inherit pname version;
sha256 = "0xyvxamw45qhnfml3x5hfg9nai1jhdwbmq4pm8csf3ad0cw6vqya";
sha256 = "0bcilhcz9xnr8799d5j4sm6qz8pdjlckdck7a282nfs64liajsrh";
};
propagatedBuildInputs = [ buildbot-pkg ];
@@ -88,7 +88,7 @@
src = fetchPypi {
inherit pname version;
sha256 = "1szcrx8vslskifzxaq7lrfg2arilaq1w1aqr0nc8pjclj7idp92c";
sha256 = "13lr7lzi9sv0s6xrfalq0dkcys6fp7hn0787rjhnz9gc7x83aqjv";
};
propagatedBuildInputs = [ buildbot-pkg ];

View File

@@ -2,11 +2,11 @@
buildPythonPackage (rec {
pname = "buildbot-worker";
version = "2.1.0";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "14qimaf513h2hklcpix8vscrawvr1qiyn1vy88ycpsbz9mcqbhps";
sha256 = "0nldf4ws1nrkhbapxiy2s8j9fjfbkhp17c5912p6qy3ximfcfa93";
};
propagatedBuildInputs = [ twisted future ];

View File

@@ -13,6 +13,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace requirements/test.txt \
--replace "moto==1.3.7" moto \
--replace "pytest>=4.3.1,<4.4.0" pytest
'';

View File

@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytools
, numpy
, pytest
}:
buildPythonPackage rec {
pname = "cgen";
version = "2017.1";
src = fetchPypi {
inherit pname version;
sha256 = "a04525d51ee975d37d590d6d82bf80a46e77f75187cccfd2248a89616a778795";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [
pytools
numpy
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "C/C++ source generation from an AST";
homepage = https://github.com/inducer/cgen;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pytest
, sphinx
}:
buildPythonPackage rec {
pname = "curio";
version = "0.9";
src = fetchPypi {
inherit pname version;
sha256 = "51d1a7b49b4f8dd1486ac785c72d522962e93ccfdcfc1f818f5c7553a307b5ef";
};
disabled = !isPy3k;
checkInputs = [ pytest sphinx ];
# test_aside_basic times out,
# test_aside_cancel fails because modifies PYTHONPATH and cant find pytest
checkPhase = ''
pytest --deselect tests/test_task.py::test_aside_basic --deselect tests/test_task.py::test_aside_cancel
'';
meta = with lib; {
homepage = "https://github.com/dabeaz/curio";
description = "Library for performing concurrent I/O with coroutines in Python 3";
license = licenses.bsd3;
maintainers = [ maintainers.marsam ];
};
}

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "deluge-client";
version = "1.7.0";
version = "1.7.1";
src = fetchPypi {
inherit pname version;
sha256 = "7c2bb6baa3183f039125fc490f47f8c6699312c3e69fcada89e9e70f63c6e092";
sha256 = "1ragmpihjr9p6n27hw7gy83qyc68csqpn18m9kvwsby1vi7mgdy8";
};
# it will try to connect to a running instance

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "distlib";
version = "0.2.8";
version = "0.2.9";
src = fetchPypi {
inherit pname version;
sha256 = "068zqb3w7nyqiv2hpy0zcpz2xd6xwhq5chigqrp9h9zav7bpr5sp";
sha256 = "1z9c4ig19hjk18agwljv5ib3pphicg50w9z5zsnqn97q7vnv17gm";
extension = "zip";
};

View File

@@ -0,0 +1,38 @@
{ stdenv, buildPythonPackage, fetchPypi, substituteAll,
isPy3k,
geos, gdal, pytz, sqlparse,
withGdal ? false
}:
buildPythonPackage rec {
pname = "Django";
version = "2.2.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1spa701phl8ha7qmfr89hwpa43kf52zbrs3xyc0rlvxianykrk3g";
};
patches = stdenv.lib.optional withGdal
(substituteAll {
src = ./1.10-gis-libs.template.patch;
geos = geos;
gdal = gdal;
extension = stdenv.hostPlatform.extensions.sharedLibrary;
})
;
propagatedBuildInputs = [ pytz sqlparse ];
# too complicated to setup
doCheck = false;
meta = with stdenv.lib; {
description = "A high-level Python Web framework";
homepage = https://www.djangoproject.com/;
license = licenses.bsd3;
maintainers = with maintainers; [ georgewhewell lsix ];
};
}

View File

@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "factory_boy";
version = "2.11.1";
version = "2.12.0";
src = fetchPypi {
inherit pname version;
sha256 = "6f25cc4761ac109efd503f096e2ad99421b1159f01a29dbb917359dcd68e08ca";
sha256 = "0w53hjgag6ad5i2vmrys8ysk54agsqvgbjy9lg8g0d8pi9h8vx7s";
};
propagatedBuildInputs = [ faker ];

View File

@@ -16,23 +16,23 @@ assert pythonOlder "3.3" -> ipaddress != null;
buildPythonPackage rec {
pname = "Faker";
version = "1.0.5";
version = "1.0.7";
src = fetchPypi {
inherit pname version;
sha256 = "3f2f4570df28df2eb8f39b00520eb610081d6552975e926c6a2cbc64fd89c4c1";
sha256 = "1jins8jlqyxjwx6i2h2jknwwfpi0bpz1qggvw6xnbxl0g9spyiv0";
};
buildInputs = [ pytestrunner ];
checkInputs = [
email_validator
freezegun
mock
more-itertools
pytest
random2
ukpostcodeparser
];
]
++ lib.optionals (pythonOlder "3.3") [ mock ]
++ lib.optionals (pythonOlder "3.0") [ more-itertools ];
propagatedBuildInputs = [
dateutil

View File

@@ -0,0 +1,28 @@
{stdenv, buildPythonPackage, fetchFromGitHub, numpy, pybind11}:
buildPythonPackage rec {
pname = "fasttext";
version = "0.2.0";
src = fetchFromGitHub {
owner = "facebookresearch";
repo = "fastText";
rev = version;
sha256 = "1fcrz648r2s80bf7vc0l371xillz5jk3ldaiv9jb7wnsyri831b4";
};
buildInputs = [ pybind11 ];
propagatedBuildInputs = [ numpy ];
preBuild = ''
HOME=$TMPDIR
'';
meta = with stdenv.lib; {
description = "Python module for text classification and representation learning";
homepage = https://fasttext.cc/;
license = licenses.mit;
maintainers = with maintainers; [ danieldk ];
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, six, hypothesis, mock
{ stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, six, hypothesis, mock
, python-Levenshtein, pytest }:
buildPythonPackage rec {
@@ -20,6 +20,13 @@ buildPythonPackage rec {
py.test
'';
patches = [
# Add Python 3.7 support. Remove with the next release
(fetchpatch {
url = "https://github.com/google/python-fire/commit/668007ae41391f5964870b4597e41493a936a11e.patch";
sha256 = "0rf7yzv9qx66zfmdggfz478z37fi4rwx4hlh3dk1065sx5rfksi0";
})
];
meta = with stdenv.lib; {
description = "A library for automatically generating command line interfaces";

View File

@@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, coverage
, dateutil
, freezegun
, mock
, requests-mock
, requests_oauthlib
, sphinx
}:
buildPythonPackage rec {
pname = "fitbit";
version = "0.3.0";
checkInputs = [ coverage freezegun mock requests-mock sphinx ];
propagatedBuildInputs = [ dateutil requests_oauthlib ];
# The source package on PyPi is missing files required for unit testing.
# https://github.com/orcasgit/python-fitbit/issues/148
src = fetchFromGitHub {
rev = version;
owner = "orcasgit";
repo = "python-fitbit";
sha256 = "0s1kp4qcxvxghqf9nb71843slm4r5lhl2rlvj3yvhbby3cqs4g84";
};
postPatch = ''
substituteInPlace requirements/test.txt \
--replace 'Sphinx>=1.2,<1.4' 'Sphinx' \
--replace 'coverage>=3.7,<4.0' 'coverage'
'';
meta = with lib; {
description = "Fitbit API Python Client Implementation";
license = licenses.asl20;
homepage = https://github.com/orcasgit/python-fitbit;
maintainers = with maintainers; [ delroth ];
};
}

View File

@@ -4,7 +4,7 @@
buildPythonPackage rec {
pname = "flask-marshmallow";
version = "0.10.0";
version = "0.10.1";
meta = {
homepage = "https://github.com/marshmallow-code/flask-marshmallow";
@@ -14,7 +14,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "1xvk289628l3pp56gidwhmd54cgdczpsxhxfw0bfcsd120k1svfv";
sha256 = "0hbp0lrdlzpcdjv1jn2hk98z9gg624nswcm0hi48k4rk28x9xsb9";
};
propagatedBuildInputs = [ flask marshmallow ];

View File

@@ -1,5 +1,6 @@
{ stdenv, buildPythonPackage, fetchPypi
, unittest2 }:
, isPyPy, isPy3k, unittest2
}:
buildPythonPackage rec {
pname = "funcsigs";
@@ -12,6 +13,9 @@ buildPythonPackage rec {
buildInputs = [ unittest2 ];
# https://github.com/testing-cabal/funcsigs/issues/10
patches = stdenv.lib.optional (isPyPy && isPy3k) [ ./fix-pypy3-tests.patch ];
meta = with stdenv.lib; {
description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+";
homepage = https://github.com/aliles/funcsigs;

View File

@@ -0,0 +1,94 @@
diff --git a/tests/test_inspect.py b/tests/test_inspect.py
index 98d6592..3a2a1f2 100644
--- a/tests/test_inspect.py
+++ b/tests/test_inspect.py
@@ -8,6 +8,7 @@ import unittest2 as unittest
import funcsigs as inspect
+import platform
class TestSignatureObject(unittest.TestCase):
@staticmethod
@@ -409,7 +410,7 @@ def test_signature_on_decorated(self):
Ellipsis))
""")
- if sys.version_info[0] > 2:
+ if sys.version_info[0] > 2 and platform.python_implementation() != "PyPy":
exec("""
def test_signature_on_class(self):
class C:
@@ -493,41 +494,44 @@ def test_signature_on_class(self):
Ellipsis))
""")
- def test_signature_on_callable_objects(self):
- class Foo(object):
- def __call__(self, a):
- pass
+ if platform.python_implementation() != "PyPy":
+ exec("""
+def test_signature_on_callable_objects(self):
+ class Foo(object):
+ def __call__(self, a):
+ pass
- self.assertEqual(self.signature(Foo()),
- ((('a', Ellipsis, Ellipsis, "positional_or_keyword"),),
- Ellipsis))
+ self.assertEqual(self.signature(Foo()),
+ ((('a', Ellipsis, Ellipsis, "positional_or_keyword"),),
+ Ellipsis))
- class Spam(object):
- pass
- with self.assertRaisesRegex(TypeError, "is not a callable object"):
- inspect.signature(Spam())
+ class Spam(object):
+ pass
+ with self.assertRaisesRegex(TypeError, "is not a callable object"):
+ inspect.signature(Spam())
- class Bar(Spam, Foo):
- pass
+ class Bar(Spam, Foo):
+ pass
- self.assertEqual(self.signature(Bar()),
- ((('a', Ellipsis, Ellipsis, "positional_or_keyword"),),
- Ellipsis))
+ self.assertEqual(self.signature(Bar()),
+ ((('a', Ellipsis, Ellipsis, "positional_or_keyword"),),
+ Ellipsis))
- class ToFail(object):
- __call__ = type
- with self.assertRaisesRegex(ValueError, "not supported by signature"):
- inspect.signature(ToFail())
+ class ToFail(object):
+ __call__ = type
+ with self.assertRaisesRegex(ValueError, "not supported by signature"):
+ inspect.signature(ToFail())
- if sys.version_info[0] < 3:
- return
+ if sys.version_info[0] < 3:
+ return
- class Wrapped(object):
- pass
- Wrapped.__wrapped__ = lambda a: None
- self.assertEqual(self.signature(Wrapped),
- ((('a', Ellipsis, Ellipsis, "positional_or_keyword"),),
- Ellipsis))
+ class Wrapped(object):
+ pass
+ Wrapped.__wrapped__ = lambda a: None
+ self.assertEqual(self.signature(Wrapped),
+ ((('a', Ellipsis, Ellipsis, "positional_or_keyword"),),
+ Ellipsis))
+""")
def test_signature_on_lambdas(self):
self.assertEqual(self.signature((lambda a=10: a)),

View File

@@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytools
, numpy
, pytest
}:
buildPythonPackage rec {
pname = "genpy";
version = "2016.1.3";
src = fetchPypi {
inherit pname version;
sha256 = "1c11726f1e8ace8bbdfc87816403c9a59f53a8c3d45c99187ae17c9725d87a91";
};
propagatedBuildInputs = [
pytools
numpy
];
meta = with lib; {
description = "C/C++ source generation from an AST";
homepage = https://github.com/inducer/genpy;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "google-api-python-client";
version = "1.7.8";
version = "1.7.9";
src = fetchPypi {
inherit pname version;
sha256 = "0n18frf0ghmwf5lxmkyski4b5h1rsx93ibq3iw0k3s2wxl371406";
sha256 = "1v551xaavqff085gplinnnrz2sk6sikmm7j47gi0wf34hpba1384";
};
# No tests included in archive

View File

@@ -4,11 +4,11 @@
buildPythonPackage rec {
pname = "gphoto2";
version = "1.9.0";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "9c8e0c3ca22c0a2bfd0f27d24be6e4da5fe315d39d51f5af7bb5da416dbfa4b7";
sha256 = "01vcbjsy5zpfd9rzshk2d6150vhb66m5n420j0wd0k0i0p74ya98";
};
nativeBuildInputs = [ pkgconfig ];

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "html5-parser";
version = "0.4.5";
version = "0.4.6";
src = fetchPypi {
inherit pname version;
sha256 = "01mx33sx4dhl4kj6wc48nj6jz7ry60rkhjv0s6k8h5xmjf5yy0x9";
sha256 = "0pxcwk5lc8ljil77xqywr0bq1xxj11z92lpfj185ac72d2b1sma5";
};
nativeBuildInputs = [ pkgconfig ];

View File

@@ -6,6 +6,7 @@
, httplib2
, sure
, nose
, nose-exclude
, coverage
, certifi
, urllib3
@@ -24,18 +25,24 @@ buildPythonPackage rec {
sha256 = "01b52d45077e702eda491f4fe75328d3468fd886aed5dcc530003e7b2b5939dc";
};
checkInputs = [ nose sure coverage mock rednose
# Following not declared in setup.py
nose-randomly requests tornado httplib2
];
propagatedBuildInputs = [ six ];
checkInputs = [ nose sure coverage mock rednose
# Following not declared in setup.py
nose-randomly requests tornado httplib2 nose-exclude
];
__darwinAllowLocalNetworking = true;
# Those flaky tests are failing intermittently on all platforms
NOSE_EXCLUDE = stdenv.lib.concatStringsSep "," [
"tests.functional.test_httplib2.test_callback_response"
"tests.functional.test_requests.test_streaming_responses"
];
meta = with stdenv.lib; {
homepage = "https://falcao.it/HTTPretty/";
homepage = "https://httpretty.readthedocs.org/";
description = "HTTP client request mocking tool";
license = licenses.mit;
};
}

View File

@@ -1,22 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, fetchurl
}:
buildPythonPackage rec {
pname = "intelhex";
version = "2.1";
version = "2.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "0k5l1mn3gv1vb0jd24ygxksx8xqr57y1ivgyj37jsrwpzrp167kw";
sha256 = "0ckqjbxd8gwcg98gfzpn4vq1qxzfvq3rdbrr1hikj1nmw08qb780";
};
patches = [
(fetchurl {
url = https://github.com/bialix/intelhex/commit/f251aef214daa2116e15ff7f7dcec1639eb12d5b.patch;
sha256 = "02i15qjmcz7mwbwvyj3agl5y7098rag2iwypdilkaadhbslsl9b9";
# patch the tests to check for the correct version string (2.2.1)
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/bialix/intelhex/pull/26.patch";
sha256 = "1f3f2cyf9ipb9zdifmjs8rqhg028dhy91vabxxn3l7br657s8r2l";
})
];

View File

@@ -16,11 +16,11 @@
buildPythonPackage rec {
pname = "ipyparallel";
version = "6.2.3";
version = "6.2.4";
src = fetchPypi {
inherit pname version;
sha256 = "1k9701r120gv0an0wxvcjrbmhns8lq3zj6px5y2izly56j2dafqy";
sha256 = "0rf0dbpxf5z82bw8lsjj45r3wdd4wc74anz4wiiaf2rbjqlb1ivn";
};
buildInputs = [ nose ];

View File

@@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, isl
, pytest
, cffi
, six
}:
buildPythonPackage rec {
pname = "islpy";
version = "2018.2";
src = fetchPypi {
inherit pname version;
sha256 = "be422a53b576210a0bb9775866abb6580b1e568222fc3e4e39d9e82f6d1d7253";
};
postConfigure = ''
substituteInPlace setup.py \
--replace "\"pytest>=2\"," ""
'';
buildInputs = [ isl ];
checkInputs = [ pytest ];
propagatedBuildInputs = [
cffi
six
];
checkPhase = ''
pytest test
'';
meta = with lib; {
description = "Python wrapper around isl, an integer set library";
homepage = https://github.com/inducer/islpy;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "jupyterlab";
version = "0.35.4";
version = "0.35.6";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "deba0b2803640fcad72c61366bff11d5945173015961586d5e3b2f629ffeb455";
sha256 = "2ec845845d51221e39d0d753884a19342c953f39febf3148a68631bf57ecb774";
};
propagatedBuildInputs = [ jupyterlab_server notebook ];

View File

@@ -1,11 +1,11 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "kitchen";
version = "1.2.5";
version = "1.2.6";
src = fetchPypi {
inherit pname version;
sha256 = "af9fbb60f68cbdb2ead402beb8fa7c7edadbe2aa7b5a70138b7c4b0fa88153fd";
sha256 = "0g5hq2icnng9vy4www5hnr3r5srisfwp0wxw1sv5c5dxy61gak5q";
};
meta = with stdenv.lib; {

View File

@@ -5,34 +5,26 @@
, django
, tornado
, six
, pytest
}:
buildPythonPackage rec {
pname = "livereload";
version = "2.6.0";
version = "2.6.1";
src = fetchFromGitHub {
owner = "lepture";
repo = "python-livereload";
rev = "v${version}";
sha256 = "0p3yvvr1iv3fv3pwc2qfzl3mi3b5zv6dh7kmfm1k7krxvganj87n";
sha256 = "15v2a0af897ijnsfjh2r8f7l5zi5i2jdm6z0xzlyyvp9pxd6mpfm";
};
buildInputs = [ nose django ];
buildInputs = [ django ];
propagatedBuildInputs = [ tornado six ];
# Remove this patch when PR merged
# https://github.com/lepture/python-livereload/pull/173
postPatch = ''
substituteInPlace tests/test_watcher.py \
--replace 'watcher.watch(filepath, add_count)' \
'add_count.repr_str = "add_count test task"; watcher.watch(filepath, add_count)'
'';
checkInputs = [ pytest ];
checkPhase = "pytest tests";
checkInputs = [ nose ];
# TODO: retry running all tests after v2.6.1
checkPhase = "NOSE_EXCLUDE=test_watch_multiple_dirs nosetests -s";
meta = {
description = "Runs a local server that reloads as you develop";

View File

@@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytools
, pymbolic
, genpy
, cgen
, islpy
, six
, colorama
, mako
, pyopencl
, pytest
}:
buildPythonPackage rec {
pname = "loo-py";
version = "2017.2";
src = fetchPypi {
pname = "loo.py";
inherit version;
sha256 = "c656992de48b328cdaccd7d1f14eb522b9dd5a1d0d15f54623f4ab18fd219abc";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [
pytools
pymbolic
genpy
cgen
islpy
six
colorama
mako
pyopencl
];
# pyopencl._cl.LogicError: clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR
doCheck = false;
checkPhase = ''
HOME=$(mktemp -d) pytest test
'';
meta = with lib; {
description = "A code generator for array-based code on CPUs and GPUs";
homepage = https://mathema.tician.de/software/loopy;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
, isPy27
, pinqSupport ? false, sqlalchemy
, pyxlSupport ? false, pyxl3
}:
buildPythonPackage rec {
# https://github.com/lihaoyi/macropy/issues/94
version = "1.1.0b2";
pname = "macropy";
disabled = isPy27;
src = fetchFromGitHub {
owner = "lihaoyi";
repo = pname;
rev = "v${version}";
sha256 = "1bd2fzpa30ddva3f8lw2sbixxf069idwib8srd64s5v46ricm2cf";
};
# js_snippets extra only works with python2
propagatedBuildInputs = [ ]
++ lib.optional pinqSupport sqlalchemy
++ lib.optional pyxlSupport pyxl3;
checkPhase = ''
${python.interpreter} run_tests.py
'';
meta = with lib; {
homepage = https://github.com/lihaoyi/macropy;
description = "Macros in Python: quasiquotes, case classes, LINQ and more";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -4,7 +4,7 @@
buildPythonPackage rec {
pname = "marshmallow-sqlalchemy";
version = "0.16.2";
version = "0.16.3";
meta = {
homepage = "https://github.com/marshmallow-code/marshmallow-sqlalchemy";
@@ -14,7 +14,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "755e6e930c1ffe3430f62091085f0a51e0817b240986d931014f03b3556fff34";
sha256 = "0qzpl53r58fk328cn41365c6jkliwmj41v16zkyjxb9d4s2mvn14";
};
propagatedBuildInputs = [ marshmallow sqlalchemy ];

View File

@@ -1,21 +1,21 @@
{ stdenv, fetchPypi, buildPythonPackage, lxml, typed-ast, psutil, isPy3k
{ stdenv, fetchPypi, buildPythonPackage, typed-ast, psutil, isPy3k
,mypy_extensions }:
buildPythonPackage rec {
pname = "mypy";
version = "0.700";
version = "0.701";
# Tests not included in pip package.
doCheck = false;
src = fetchPypi {
inherit pname version;
sha256 = "1zxfi5s9hxrz0hbaj4n513az17l44pxl80r62ipjc0bsmbcic2xi";
sha256 = "05479r3gbq17r22hyhxjg49smx5q864pgx8ayy23rsdj4w6z2r2p";
};
disabled = !isPy3k;
propagatedBuildInputs = [ lxml typed-ast psutil mypy_extensions ];
propagatedBuildInputs = [ typed-ast psutil mypy_extensions ];
meta = with stdenv.lib; {
description = "Optional static typing for Python";

View File

@@ -9,12 +9,12 @@
}:
buildPythonPackage rec {
version = "2.1.0";
version = "2.3.0";
pname = "pamqp";
src = fetchPypi {
inherit pname version;
sha256 = "e1fa1107a195993fca6e04f1eb7286b60e223c958944d7808a501258ccc0ef8c";
sha256 = "1s4lwbsiikz3czqad7jarb7k303q0wamla0rirghvwl9bslgbl2w";
};
buildInputs = [ mock nose pep8 pylint mccabe ];

View File

@@ -0,0 +1,51 @@
{ stdenv, buildPythonPackage, fetchpatch, fetchFromGitHub,
python, cmake, git, swig, boost, udev,
setuptools, enum34, wrapt, future }:
buildPythonPackage rec {
pname = "pc-ble-driver-py";
version = "0.11.4";
disabled = python.isPy3k;
src = fetchFromGitHub {
owner = "NordicSemiconductor";
repo = "pc-ble-driver-py";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "0lgmcnrlcivmawmlcwnn4pdp6afdbnf3fyfgq22xzs6v72m9gp81";
};
nativeBuildInputs = [ cmake swig git setuptools ];
buildInputs = [ boost udev ];
propagatedBuildInputs = [ enum34 wrapt future ];
patches = [
# build system expects case-insensitive file system
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/NordicSemiconductor/pc-ble-driver-py/pull/84.patch";
sha256 = "0ibx5g2bndr5h9sfnx51bk9b62q4jvpdwhxadbnj3da8kvcz13cy";
})
];
postPatch = ''
# do not force static linking of boost
sed -i /Boost_USE_STATIC_LIBS/d pc-ble-driver/cmake/*.cmake
cd python
'';
preBuild = ''
pushd ../build
cmake ..
make -j $NIX_BUILD_CORES
popd
'';
meta = with stdenv.lib; {
description = "Bluetooth Low Energy nRF5 SoftDevice serialization";
homepage = "https://github.com/NordicSemiconductor/pc-ble-driver-py";
license = licenses.unfreeRedistributable;
platforms = platforms.unix;
maintainers = with maintainers; [ gebner ];
};
}

View File

@@ -1,23 +1,25 @@
{ buildPythonPackage
{ lib
, buildPythonPackage
, fetchPypi
, zope_interface
, zope_interface, cffi
, sphinx, manuel
}:
buildPythonPackage rec {
pname = "persistent";
version = "4.4.3";
version = "4.5.0";
nativeBuildInputs = [ sphinx manuel ];
propagatedBuildInputs = [ zope_interface ];
propagatedBuildInputs = [ zope_interface cffi ];
src = fetchPypi {
inherit pname version;
sha256 = "05hi8yfvxl5ns7y7xhbgbqp78ydaxabjp5b64r4nmrfdfsqylrb7";
sha256 = "0slbvq1m3rilgyhj6i522rsyv592xv9pmvm61mrmgkgf40kfnz69";
};
meta = {
description = "Automatic persistence for Python objects";
homepage = http://www.zope.org/Products/ZODB;
homepage = "http://www.zodb.org/";
license = lib.licenses.zpl21;
};
}

View File

@@ -1,20 +1,19 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, setuptools
}:
buildPythonPackage rec {
pname = "pex";
version = "1.6.6";
version = "1.6.7";
src = fetchPypi {
inherit pname version;
sha256 = "ca887bedc9c6e0eab72fcb4c20eda8fff975d06b75993a85ee1dfc763ba38e86";
sha256 = "1hg30y8b4b96r4skhz2qmsp7li1izcg8854q3fi48rks0kcfx5fw";
};
prePatch = ''
substituteInPlace setup.py --replace 'SETUPTOOLS_REQUIREMENT,' '"setuptools"'
'';
nativeBuildInputs = [ setuptools ];
# A few more dependencies I don't want to handle right now...
doCheck = false;
@@ -24,7 +23,6 @@ buildPythonPackage rec {
homepage = "https://github.com/pantsbuild/pex";
license = licenses.asl20;
maintainers = with maintainers; [ copumpkin ];
broken = true;
};
}

View File

@@ -0,0 +1,19 @@
{ buildPythonPackage, fetchPypi, lib, ipaddress }:
buildPythonPackage rec {
pname = "piccata";
version = "1.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "45f6c98c2ea809d445040888117f99bc3ee843490d86fecc5805ff5ea41508f7";
};
propagatedBuildInputs = [ ipaddress ];
meta = {
description = "Simple CoAP (RFC7252) toolkit";
homepage = "https://github.com/NordicSemiconductor/piccata";
maintainers = with lib.maintainers; [ gebner ];
};
}

View File

@@ -8,11 +8,11 @@
buildPythonPackage rec {
pname = "plyvel";
version = "1.0.5";
version = "1.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "14cbdyq1s8xmvha3lj942gw478cd6jyhkw8n0mhxpgbz8px9jkfn";
sha256 = "1icsycqqjj8048a0drj3j75a71yiv2cmijh4w3jf9zxahh3k2c9p";
};
buildInputs = [ pkgs.leveldb ] ++ stdenv.lib.optional isPy3k pytest;

View File

@@ -0,0 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "pyatmo";
version = "1.10";
src = fetchPypi {
inherit pname version;
sha256 = "13ca794416707b8cefcb7584bbfff65a4640fcc2510ad73e818fef94d424fca6";
};
# Upstream provides no unit tests.
doCheck = false;
meta = with lib; {
description = "Simple API to access Netatmo weather station data";
license = licenses.mit;
homepage = https://github.com/jabesq/netatmo-api-python;
maintainers = with maintainers; [ delroth ];
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchPypi, buildPythonPackage, setuptools_scm, pygccxml }:
{ stdenv, fetchPypi, buildPythonPackage, isPy3k, setuptools_scm, pygccxml }:
buildPythonPackage rec {
pname = "PyBindGen";
version = "0.19.0";
@@ -11,6 +11,7 @@ buildPythonPackage rec {
buildInputs = [ setuptools_scm ];
checkInputs = [ pygccxml ];
doCheck = (!isPy3k); # Fails to import module 'cxxfilt' from pygccxml on Py3k
meta = with stdenv.lib; {
homepage = https://github.com/gjcarneiro/pybindgen;
@@ -19,5 +20,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ teto ];
};
}

View File

@@ -0,0 +1,26 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pyusb
, pyserial
}:
buildPythonPackage rec {
pname = "pyftdi";
version = "0.29.4";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "0jy0xbqvmhy0nq9v86759d96raa8p52yq8ik3ji5kjlx7cizq67v";
};
propagatedBuildInputs = [ pyusb pyserial ];
meta = {
description = "User-space driver for modern FTDI devices";
homepage = "http://github.com/eblot/pyftdi";
license = lib.licenses.lgpl2;
};
}

View File

@@ -3,13 +3,13 @@
buildPythonPackage rec {
pname = "pylint";
version = "2.2.3";
version = "2.3.1";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "13109caab4972cb6d7395e94ad7189e93e9454f09ededaa6b6784cc5456d41f1";
sha256 = "1wgzq0da87m7708hrc9h4bc5m4z2p7379i4xyydszasmjns3sgkj";
};
nativeBuildInputs = [ pytestrunner ];

View File

@@ -0,0 +1,44 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytools
, pytest
, six
, sympy
, pexpect
, symengine
}:
buildPythonPackage rec {
pname = "pymbolic";
version = "2018.1";
src = fetchPypi {
inherit pname version;
sha256 = "a47d5524d6a3cdc8a028079ce632eeb45ceea7243272d234f250622087688207";
};
postConfigure = ''
substituteInPlace setup.py \
--replace "\"pytest>=2.3\"," ""
'';
checkInputs = [ sympy pexpect symengine pytest ];
propagatedBuildInputs = [
pytools
six
];
# too many tests fail
doCheck = false;
checkPhase = ''
pytest test
'';
meta = with lib; {
description = "A package for symbolic computation";
homepage = https://mathema.tician.de/software/pymbolic;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -5,11 +5,11 @@
buildPythonPackage rec {
pname = "Pympler";
version = "0.6";
version = "0.7";
src = fetchPypi {
inherit pname version;
sha256 = "c262ceca4dac67b8b523956833c52443420eabc3321a07185990b358b8ba13a7";
sha256 = "0ki7bqp1h9l1xc2k1h4vjyzsgs20i8ingvcdhszyi72s28wyf4bs";
};
postPatch = ''

View File

@@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, xmltodict
, requests
, ifaddr
# Test dependencies
, pytest_3, pylint, flake8, graphviz
, mock, sphinx, sphinx_rtd_theme
}:
buildPythonPackage rec {
pname = "pysonos";
version = "0.0.13";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0azkbd20qdzdilv5pi4qngw7pjjcsv269dim7xh3qv7s9bp0xik8";
};
propagatedBuildInputs = [ xmltodict requests ifaddr ];
checkInputs = [
pytest_3 pylint flake8 graphviz
mock sphinx sphinx_rtd_theme
];
meta = {
homepage = https://github.com/amelchio/pysonos;
description = "A SoCo fork with fixes for Home Assistant";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ juaningan ];
};
}

View File

@@ -0,0 +1,21 @@
{ buildPythonPackage, fetchPypi, lib, future, pyserial, ipaddress }:
buildPythonPackage rec {
pname = "pyspinel";
version = "1.0.0a3";
src = fetchPypi {
inherit pname version;
sha256 = "0914a662d57a14bce9df21f22711b5c9b2fef37cf461be54ed35c6e229060fd4";
};
propagatedBuildInputs = [ pyserial ipaddress future ];
doCheck = false;
meta = {
description = "Interface to the OpenThread Network Co-Processor (NCP)";
homepage = "https://github.com/openthread/pyspinel";
maintainers = with lib.maintainers; [ gebner ];
};
}

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "python-axolotl";
version = "0.1.42";
version = "0.2.2";
src = fetchPypi {
inherit pname version;
sha256 = "ef78c2efabcd4c33741669334bdda04710a3ef0e00b653f00127acff6460a7f0";
sha256 = "1had4dq4n26c3hp62rbmhvs1dj3j3z2jhcbddnbsmqmiky8dqs39";
};
propagatedBuildInputs = [ cryptography python-axolotl-curve25519 protobuf ];

View File

@@ -0,0 +1,23 @@
{ stdenv
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "pytricia";
version = "unstable-2019-01-16";
src = fetchFromGitHub {
owner = "jsommers";
repo = pname;
rev = "4ba88f68c3125f789ca8cd1cfae156e1464bde87";
sha256 = "0qp5774xkm700g35k5c76pck8pdzqlyzbaqgrz76a1yh67s2ri8h";
};
meta = with stdenv.lib; {
description = "A library for fast IP address lookup in Python";
homepage = https://github.com/jsommers/pytricia;
license = with licenses; [ lgpl3Plus ];
maintainers = with maintainers; [ mkg ];
};
}

View File

@@ -7,12 +7,12 @@
buildPythonPackage rec {
pname = "pyutilib";
version = "5.6.5";
version = "5.7.0";
src = fetchPypi {
pname = "PyUtilib";
inherit version;
sha256 = "4730084624be98f2c326da88f3852831c6aa919e11babab2c34b0299c8f5ce2a";
sha256 = "086fzgjb2mjgkfhg1hvc2gcyam2ab28mijygwica5fg4zz6rn32l";
};
propagatedBuildInputs = [

View File

@@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchPypi
, unittest2
, python
, isPy27
}:
buildPythonPackage rec {
pname = "pyxl3";
version = "1.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "df413d86664e2d261f67749beffff07eb830ab8c7bbe631d11d4c42f3a5e5fde";
};
checkInputs = [ unittest2 ];
checkPhase = ''
${python.interpreter} tests/test_basic.py
'';
# tests require weird codec installation
# which is not necessary for major use of package
doCheck = false;
meta = with lib; {
description = "Python 3 port of pyxl for writing structured and reusable inline HTML";
homepage = https://github.com/gvanrossum/pyxl3;
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "r2pipe";
version = "1.2.0";
version = "1.3.1";
postPatch = let
r2lib = "${lib.getOutput "lib" radare2}/lib";
@@ -27,7 +27,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "1qs3xqmi9alahsgr8akzw06ia4c3554dz8pran1h7z5llk262nj4";
sha256 = "0xvv12q3cwbibim3r97dsz6lbj7xxhlbq7fdm4pznwfzg803cmiv";
};
# Tiny sanity check to make sure r2pipe finds radare2 (since r2pipe doesn't

View File

@@ -1,22 +1,22 @@
{ buildPythonPackage, lib, fetchFromGitHub
{ buildPythonPackage, lib, fetchFromGitHub, isPy3k
, cython
, numpy, affine, attrs, cligj, click-plugins, snuggs, gdal
, pytest, pytestcov, packaging, hypothesis, boto3
, pytest, pytestcov, packaging, hypothesis, boto3, mock
}:
buildPythonPackage rec {
pname = "rasterio";
version = "1.0.22";
version = "1.0.23";
# Pypi doesn't ship the tests, so we fetch directly from GitHub
src = fetchFromGitHub {
owner = "mapbox";
repo = "rasterio";
rev = version;
sha256 = "1gx48qjiahlwflmjlkndp3ricd03jmzfx7i9ffgq7a2i6gcm36zp";
sha256 = "1xypc86prwkv6ypy87g6r1p5y6d6c51vfxd3z6hjd1hv2ks7zjs1";
};
checkInputs = [ boto3 pytest pytestcov packaging hypothesis ];
checkInputs = [ boto3 pytest pytestcov packaging hypothesis ] ++ lib.optional (!isPy3k) mock;
nativeBuildInputs = [ cython gdal ];
propagatedBuildInputs = [ gdal numpy attrs affine cligj click-plugins snuggs ];

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "rpmfluff";
version = "0.5.6";
version = "0.5.7.1";
src = fetchurl {
url = "https://releases.pagure.org/${pname}/${pname}-${version}.tar.xz";
sha256 = "0bhh8mv2kddhv3fiswg3zdl91d7vh93b33jlh1dmyz63z94rm88l";
sha256 = "19vnlzma8b0aghdiixk0q3wc10y6306hsnic0qvswaaiki94fss1";
};
LC_ALL="en_US.utf-8";

View File

@@ -1,13 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, boto3
, six
, pyyaml
, mock
, python
}:
let
py = python.override {
packageOverrides = self: super: {
pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec {
version = "3.12";
src = oldAttrs.src.override {
inherit version;
sha256 = "592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab";
};
});
};
};
in
with py.pkgs;
buildPythonPackage rec {
pname = "serverlessrepo";
version = "0.1.8";

View File

@@ -1,26 +1,27 @@
{ buildPythonPackage, lib, fetchPypi, glibcLocales, isPy3k, contextvars
, pythonOlder
, pythonOlder, pytest, curio
}:
buildPythonPackage rec {
pname = "sniffio";
version = "1.0.0";
version = "1.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1dzb0nx3m1hpjgsv6s6w5ac2jcmywcz6gqnfkw8rwz1vkr1836rf";
sha256 = "8e3810100f69fe0edd463d02ad407112542a11ffdc29f67db2bf3771afb87a21";
};
# breaks with the following error:
# > TypeError: 'encoding' is an invalid keyword argument for this function
disabled = !isPy3k;
buildInputs = [ glibcLocales ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [ contextvars ];
# no tests distributed with PyPI
doCheck = false;
checkInputs = [ pytest curio ];
checkPhase = ''
pytest
'';
meta = with lib; {
homepage = https://github.com/python-trio/sniffio;

View File

@@ -17,22 +17,24 @@
, pathlib
, msgpack-python
, msgpack-numpy
, jsonschema
, blis
, wasabi
, srsly
}:
buildPythonPackage rec {
pname = "spacy";
version = "2.0.18";
version = "2.1.4";
src = fetchPypi {
inherit pname version;
sha256 = "0mybdms7c40jvk8ak180n65anjiyg4c8gkaqwkzicrd1mxq3ngqj";
sha256 = "03m4c59aaqpqr2x5yhv7y37z0vxhmmkfi6dv4cbp9nxsq9wv100d";
};
prePatch = ''
substituteInPlace setup.py \
--replace "regex==" "regex>=" \
--replace "plac<1.0.0,>=0.9.6" "plac>=0.9.6" \
--replace "wheel>=0.32.0,<0.33.0" "wheel>=0.32.0"
--replace "plac<1.0.0,>=0.9.6" "plac>=0.9.6"
'';
propagatedBuildInputs = [
@@ -49,6 +51,10 @@ buildPythonPackage rec {
ftfy
msgpack-python
msgpack-numpy
jsonschema
blis
wasabi
srsly
] ++ lib.optional (pythonOlder "3.4") pathlib;
checkInputs = [

View File

@@ -1,78 +1,96 @@
[{
"pname": "de_core_news_md",
"version": "2.1.0",
"sha256": "0q1flyrp2n8ja11kdlw6x1k0gll0r096pxy8ba4xv15hjng2zay1",
"license": "cc-by-sa-40"
},
{
"pname": "de_core_news_sm",
"version": "2.0.0",
"sha256": "13fs4f46qg9mlxd9ynmh81gxizm11kfq3g52pk8d2m7wp89xfc6a",
"version": "2.1.0",
"sha256": "0fj4dqa915i6niyskxmw2318fxzjhgdjhjx79h9cpp4mxw719w95",
"license": "cc-by-sa-40"
},
{
"pname": "el_core_news_md",
"version": "2.1.0",
"sha256": "1rgy9hlb92amhlbwkd91yh87xssqj2a1ign0wm59aai69rb79q3s",
"license": "cc-by-sa-40"
},
{
"pname": "el_core_news_sm",
"version": "2.1.0",
"sha256": "07n7qg0nnzg5gjq7vs72j9qc6z4zjx65qsrrj0hjhiihk3ps378z",
"license": "cc-by-sa-40"
},
{
"pname": "en_core_web_lg",
"version": "2.0.0",
"sha256": "1r33l02jrkzjn78nd0bzzzd6rwjlz7qfgs3bg5yr2ki6q0m7qxvw",
"version": "2.1.0",
"sha256": "0ywcczd9nsxmpfwknxa7z54h566bwi7chq0jzx3sqk2a6lva4q52",
"license": "cc-by-sa-40"
},
{
"pname": "en_core_web_md",
"version": "2.0.0",
"sha256": "1b5g5gma1gzm8ffj0pgli1pllccx5jpjvb7a19n7c8bfswpifxzc",
"version": "2.1.0",
"sha256": "10vgq1xd6dpdl7xdssgf0kywbq7xpxp79yqc2vcnl3c4axfpwk5q",
"license": "cc-by-sa-40"
},
{
"pname": "en_core_web_sm",
"version": "2.0.0",
"sha256": "161298pl6kzc0cgf2g7ji84xbqv8ayrgsrmmg0hxiflwghfj77cx",
"version": "2.1.0",
"sha256": "1wg5a7nxq82sfmnc3j5xfr8il65rprmcx2h36va5dvydm1h6icad",
"license": "cc-by-sa-40"
},
{
"pname": "en_vectors_web_lg",
"version": "2.0.0",
"sha256": "15qfd8vzdv56x41fzghy7k5x1c8ql92ds70r37b6a8hkb87z9byw",
"version": "2.1.0",
"sha256": "1sq41pr70215f2s8k35x5ni4w0i4xhbzbfg3iyxgbp1b35gizg94",
"license": "cc-by-sa-40"
},
{
"pname": "es_core_news_md",
"version": "2.0.0",
"sha256": "03056qz866r641q4nagymw6pc78qnn5vdvcp7p1ph2cvxh7081kp",
"version": "2.1.0",
"sha256": "02v7hm711r9ma8p5yk057z7hm2pcvpfjgnjszc697d0ymfn4avby",
"license": "cc-by-sa-40"
},
{
"pname": "es_core_news_sm",
"version": "2.0.0",
"sha256": "1b91lcmw2kyqmcrxlfq7m5vlj1a57i3bb9a5h4y31smjgzmsr81s",
"version": "2.1.0",
"sha256": "1smyyb1gqp090sailqdqp5v5ww4kf99a3hcd9d9rdhn1wgsv28dh",
"license": "cc-by-sa-40"
},
{
"pname": "fr_core_news_md",
"version": "2.0.0",
"sha256": "06kva46l1nw819bidzj2vks69ap1a9fa7rnvpd28l3z2haci38ls",
"version": "2.1.0",
"sha256": "0n94ja7y4jbvz0k0x5bij2dypy11ikvgpd9dav0m0hw1wpqgls1i",
"license": "cc-by-sa-40"
},
{
"pname": "fr_core_news_sm",
"version": "2.0.0",
"sha256": "1zlhm9646g3cwcv4cs33160f3v8gxmzdr02x8hx7jpw1fbnmc5mx",
"version": "2.1.0",
"sha256": "1czr40y5sqs0n2dd4s37kc2xawkh2nsj41wvmsx48bw0aksb1n75",
"license": "cc-by-sa-40"
},
{
"pname": "it_core_news_sm",
"version": "2.0.0",
"sha256": "0fs68rdq19migb3x3hb510b96aabibsi01adlk1fipll1x48msaz",
"version": "2.1.0",
"sha256": "1i8dm703mf1l39jwis3mn5mb9azpx6bsimh66iriax94612x64mb",
"license": "cc-by-sa-40"
},
{
"pname": "nl_core_news_sm",
"version": "2.0.0",
"sha256": "0n5x61jp8rdxa3ki250ipbd68rjpp9li6xwbx3fbzycpngffwy8z",
"version": "2.1.0",
"sha256": "0ywyn7jprsfr10bvwnm3qk270raxm9s9rvzyp1cp7ca037ab633y",
"license": "cc-by-sa-40"
},
{
"pname": "pt_core_news_sm",
"version": "2.0.0",
"sha256": "1sg500b3f3qnx1ga32hbq9p4qfynqhpdzhlmdjrxgqw8i58ys23g",
"version": "2.1.0",
"sha256": "0vigc9x7158sdqxjgcxgvp6458k5936jlmlp2qdmlmzxr5wmfrbc",
"license": "cc-by-sa-40"
},
{
"pname": "xx_ent_wiki_sm",
"version": "2.0.0",
"sha256": "0mc3mm6nfjp31wbjysdj2x72akyi52hgprm1g54djxfypm3pmn35",
"version": "2.1.0",
"sha256": "19sfsxwjqdzlfm43gb4hbyj0hgqcfhcfxwdib4g5i1pcfx1v3pf4",
"license": "cc-by-sa-40"
}]

View File

@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "sphinxcontrib-plantuml";
version = "0.14";
version = "0.15";
src = fetchPypi {
inherit pname version;
sha256 = "504229e943e8ac821cd9d708124bde30041ae9d8341f9ea953866404527f4e82";
sha256 = "06yl6aiw8gpq3wmi6wxy5lahfgbbmlw6nchq9h1ssi5lipwaxn7a";
};
# No tests included.

View File

@@ -0,0 +1,30 @@
{ stdenv, buildPythonPackage, fetchPypi, cloudpickle, ipykernel, wurlitzer,
jupyter_client, pyzmq }:
buildPythonPackage rec {
pname = "spyder-kernels";
version = "0.4.4";
src = fetchPypi {
inherit pname version;
sha256 = "0g3754s71cnh7kygps6gbzrhs5gb47p3pblr7hcvxk1mzl3xw94r";
};
propagatedBuildInputs = [
cloudpickle
ipykernel
wurlitzer
jupyter_client
pyzmq
];
# No tests
doCheck = false;
meta = with stdenv.lib; {
description = "Jupyter kernels for Spyder's console";
homepage = "https://github.com/spyder-ide/spyder-kernels";
license = licenses.mit;
maintainers = with maintainers; [ gebner ];
};
}

View File

@@ -0,0 +1,59 @@
{ stdenv, buildPythonPackage, fetchPypi, makeDesktopItem, jedi, pycodestyle,
psutil, pyflakes, rope, numpy, scipy, matplotlib, pylint, keyring, numpydoc,
qtconsole, qtawesome, nbconvert, mccabe, pyopengl, cloudpickle, pygments,
spyder-kernels, qtpy, pyzmq, chardet }:
buildPythonPackage rec {
pname = "spyder";
version = "3.3.4";
src = fetchPypi {
inherit pname version;
sha256 = "1fa5yhw0sjk5qydydp76scyxd8lvyciknq0vajnq0mxhhvfig3ra";
};
propagatedBuildInputs = [
jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint keyring
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels
pygments qtpy pyzmq chardet
];
# There is no test for spyder
doCheck = false;
desktopItem = makeDesktopItem {
name = "Spyder";
exec = "spyder";
icon = "spyder";
comment = "Scientific Python Development Environment";
desktopName = "Spyder";
genericName = "Python IDE";
categories = "Application;Development;Editor;IDE;";
};
postPatch = ''
# remove dependency on pyqtwebengine
# this is still part of the pyqt 5.11 version we have in nixpkgs
sed -i /pyqtwebengine/d setup.py
'';
# Create desktop item
postInstall = ''
mkdir -p $out/share/icons
cp spyder/images/spyder.svg $out/share/icons
cp -r $desktopItem/share/applications/ $out/share
'';
meta = with stdenv.lib; {
description = "Scientific python development environment";
longDescription = ''
Spyder (previously known as Pydee) is a powerful interactive development
environment for the Python language with advanced editing, interactive
testing, debugging and introspection features.
'';
homepage = "https://github.com/spyder-ide/spyder/";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ gebner ];
};
}

View File

@@ -0,0 +1,41 @@
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, mock
, numpy
, pathlib
, pytest
, pytz
}:
buildPythonPackage rec {
pname = "srsly";
version = "0.0.5";
src = fetchPypi {
inherit pname version;
sha256 = "0apgm8znc3k79ifja16fvxsxwgpy3n2fvbp7iwf9szizzpjscylp";
};
propagatedBuildInputs = lib.optional (pythonOlder "3.4") pathlib;
checkInputs = [
mock
numpy
pytest
pytz
];
# TypeError: cannot serialize '_io.BufferedRandom' object
# Possibly because of sandbox restrictions.
doCheck = false;
meta = with stdenv.lib; {
description = "Modern high-performance serialization utilities for Python";
homepage = https://github.com/explosion/srsly;
license = licenses.mit;
maintainers = with maintainers; [ danieldk ];
};
}

View File

@@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, arrow
, requests
, units
, pytz
, six
}:
buildPythonPackage rec {
pname = "stravalib";
version = "0.10.2";
src = fetchPypi {
inherit pname version;
sha256 = "76db248b24cbd6c51cf93b475d8a8df04ec4b6c6287dca244e47f37a433276d7";
};
checkInputs = [
nose
];
propagatedBuildInputs = [
arrow
requests
units
pytz
six
];
# tests require network access
# testing strava api
doCheck = false;
meta = with lib; {
description = "Python library for interacting with Strava v3 REST API";
homepage = https://github.com/hozn/stravalib;
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, cython
, cmake
, symengine
, pytest
, sympy
, python
}:
buildPythonPackage rec {
pname = "symengine";
version = "0.4.0";
src = fetchFromGitHub {
owner = "symengine";
repo = "symengine.py";
rev = "v${version}";
sha256 = "07i9rwxphi4zgwc7y6f6qvq73iym2cx4k1bpd7rmd3wkpgrrfxqx";
};
postConfigure = ''
substituteInPlace setup.py \
--replace "\"cmake\"" "\"${cmake}/bin/cmake\""
substituteInPlace cmake/FindCython.cmake \
--replace "SET(CYTHON_BIN cython" "SET(CYTHON_BIN ${cython}/bin/cython"
'';
buildInputs = [ cython cmake ];
checkInputs = [ pytest sympy ];
setupPyBuildFlags = [
"--symengine-dir=${symengine}/"
"--define=\"CYTHON_BIN=${cython}/bin/cython\""
];
checkPhase = ''
mkdir empty
cd empty
${python.interpreter} ../bin/test_python.py
'';
meta = with lib; {
description = "Python library providing wrappers to SymEngine";
homepage = https://github.com/symengine/symengine.py;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -21,15 +21,18 @@
, mock
, wrapt
, dill
, blis
, srsly
, wasabi
}:
buildPythonPackage rec {
pname = "thinc";
version = "6.12.1";
version = "7.0.4";
src = fetchPypi {
inherit pname version;
sha256 = "1kkp8b3xcs3yn3ia5sxrh086c9xv27s2khdxd17abdypxxa99ich";
sha256 = "14v8ygjrkj63dwd4pi490ld6i2d8n8wzcf15hnacjjfwij93pa1q";
};
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
@@ -37,6 +40,7 @@ buildPythonPackage rec {
]);
propagatedBuildInputs = [
blis
cython
cymem
msgpack-numpy
@@ -48,8 +52,10 @@ buildPythonPackage rec {
cytoolz
plac
six
srsly
wrapt
dill
wasabi
] ++ lib.optional (pythonOlder "3.4") pathlib;
@@ -61,12 +67,7 @@ buildPythonPackage rec {
prePatch = ''
substituteInPlace setup.py \
--replace "pathlib==1.0.1" "pathlib>=1.0.0,<2.0.0" \
--replace "plac>=0.9.6,<1.0.0" "plac>=0.9.6" \
--replace "msgpack-numpy<0.4.4" "msgpack-numpy" \
--replace "wheel>=0.32.0,<0.33.0" "wheel" \
--replace "wrapt>=1.10.0,<1.11.0" "wrapt" \
--replace "msgpack>=0.5.6,<0.6.0" "msgpack"
--replace "plac>=0.9.6,<1.0.0" "plac>=0.9.6"
'';
# Cannot find cython modules.

View File

@@ -0,0 +1,34 @@
{ stdenv, fetchPypi, python }:
python.pkgs.buildPythonPackage rec {
pname = "tld";
version = "0.9.3";
src = fetchPypi {
inherit pname version;
sha256 = "0i0prgwrmm157h6fa5bx9wm0m70qq2nhzp743374a94p9s766rpp";
};
propagatedBuildInputs = with python.pkgs; [ six ];
checkInputs = with python.pkgs; [ factory_boy faker pytest pytestcov tox ];
# https://github.com/barseghyanartur/tld/issues/54
disabledTests = stdenv.lib.concatMapStringsSep " and " (s: "not " + s) ([
"test_1_update_tld_names"
"test_1_update_tld_names_command"
"test_2_update_tld_names_module"
]);
checkPhase = ''
export PATH="$PATH:$out/bin"
py.test -k '${disabledTests}'
'';
meta = with stdenv.lib; {
homepage = https://github.com/barseghyanartur/tld;
description = "Extracts the top level domain (TLD) from the URL given";
license = licenses.lgpl21;
maintainers = with maintainers; [ genesis ];
};
}

View File

@@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "uncompyle6";
version = "3.2.6";
version = "3.3.2";
src = fetchPypi {
inherit pname version;
sha256 = "3a40f4f4b8b02a8687bd98c598980bed38a4770e3de253847eafed4b7167d07f";
sha256 = "096k1hipxxnsra5k86v6sm7bk1g0kb1f75yb44nvgf566kd6p119";
};
checkInputs = [ nose pytest hypothesis six ];
@@ -23,8 +23,9 @@ buildPythonPackage rec {
# six import errors (yet it is supplied...)
checkPhase = ''
pytest ./pytest --ignore=pytest/test_build_const_key_map.py \
--ignore=pytest/test_grammar.py
runHook preCheck
pytest ./pytest --ignore=pytest/test_function_call.py
runHook postCheck
'';
meta = with stdenv.lib; {

View File

@@ -0,0 +1,21 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "units";
version = "0.07";
src = fetchPypi {
inherit pname version;
sha256 = "43eb3e073e1b11289df7b1c3f184b5b917ccad178b717b03933298716f200e14";
};
meta = with lib; {
description = "Python support for quantities with units";
homepage = https://bitbucket.org/adonohue/units/;
license = licenses.psfl;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -0,0 +1,30 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
}:
buildPythonPackage rec {
pname = "wasabi";
version = "0.2.2";
src = fetchPypi {
inherit pname version;
sha256 = "0xxjc9bvvcaz1qq1jyhcxyl2v39jz8d8dz4zhpfbc7dz53kq6b7r";
};
checkInputs = [
pytest
];
checkPhase = ''
pytest wasabi/tests
'';
meta = with stdenv.lib; {
description = "A lightweight console printing and formatting toolkit";
homepage = https://github.com/ines/wasabi;
license = licenses.mit;
maintainers = with maintainers; [ danieldk ];
};
}

View File

@@ -0,0 +1,67 @@
{ buildPythonPackage,
fetchPypi,
cairosvg,
pyphen,
cffi,
cssselect,
lxml,
html5lib,
tinycss,
pygobject2,
glib,
pango,
fontconfig,
stdenv,
pytest,
pytestrunner,
pytest-isort,
pytest-flake8,
pytestcov,
isPy3k,
substituteAll
}:
buildPythonPackage rec {
pname = "weasyprint";
version = "45";
disabled = !isPy3k;
# ignore failing pytest
checkPhase = "pytest -k 'not test_font_stretch'";
# ignore failing flake8-test
prePatch = ''
substituteInPlace setup.cfg \
--replace '[tool:pytest]' '[tool:pytest]\nflake8-ignore = E501'
'';
checkInputs = [ pytest pytestrunner pytest-isort pytest-flake8 pytestcov ];
FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf";
propagatedBuildInputs = [ cairosvg pyphen cffi cssselect lxml html5lib tinycss pygobject2 ];
patches = [
(substituteAll {
src = ./library-paths.patch;
fontconfig = "${fontconfig.lib}/lib/libfontconfig${stdenv.hostPlatform.extensions.sharedLibrary}";
pangoft2 = "${pango.out}/lib/libpangoft2-1.0${stdenv.hostPlatform.extensions.sharedLibrary}";
gobject = "${glib.out}/lib/libgobject-2.0${stdenv.hostPlatform.extensions.sharedLibrary}";
pango = "${pango.out}/lib/libpango-1.0${stdenv.hostPlatform.extensions.sharedLibrary}";
pangocairo = "${pango.out}/lib/libpangocairo-1.0${stdenv.hostPlatform.extensions.sharedLibrary}";
})
];
src = fetchPypi {
inherit version;
pname = "WeasyPrint";
sha256 = "04bf2p2x619g4q4scg8v6v57c24vwn7qckvz81rckj8clzifyr82";
};
meta = with stdenv.lib; {
homepage = https://weasyprint.org/;
description = "Converts web documents to PDF";
license = licenses.bsd3;
maintainers = with maintainers; [ elohmeier ];
};
}

View File

@@ -0,0 +1,38 @@
diff --git a/weasyprint/fonts.py b/weasyprint/fonts.py
index 377716c1..2016e01c 100644
--- a/weasyprint/fonts.py
+++ b/weasyprint/fonts.py
@@ -48,11 +48,8 @@ else:
# with OSError: dlopen() failed to load a library: cairo / cairo-2
# So let's hope we find the same file as cairo already did ;)
# Same applies to pangocairo requiring pangoft2
- fontconfig = dlopen(ffi, 'fontconfig', 'libfontconfig',
- 'libfontconfig-1.dll',
- 'libfontconfig.so.1', 'libfontconfig-1.dylib')
- pangoft2 = dlopen(ffi, 'pangoft2-1.0', 'libpangoft2-1.0-0',
- 'libpangoft2-1.0.so', 'libpangoft2-1.0.dylib')
+ fontconfig = dlopen(ffi, '@fontconfig@')
+ pangoft2 = dlopen(ffi, '@pangoft2@')
ffi.cdef('''
// FontConfig
diff --git a/weasyprint/text.py b/weasyprint/text.py
index 035074e9..08e40395 100644
--- a/weasyprint/text.py
+++ b/weasyprint/text.py
@@ -243,12 +243,9 @@ def dlopen(ffi, *names):
return ffi.dlopen(names[0]) # pragma: no cover
-gobject = dlopen(ffi, 'gobject-2.0', 'libgobject-2.0-0', 'libgobject-2.0.so',
- 'libgobject-2.0.dylib')
-pango = dlopen(ffi, 'pango-1.0', 'libpango-1.0-0', 'libpango-1.0.so',
- 'libpango-1.0.dylib')
-pangocairo = dlopen(ffi, 'pangocairo-1.0', 'libpangocairo-1.0-0',
- 'libpangocairo-1.0.so', 'libpangocairo-1.0.dylib')
+gobject = dlopen(ffi, '@gobject@')
+pango = dlopen(ffi, '@pango@')
+pangocairo = dlopen(ffi, '@pangocairo@')
gobject.g_type_init()

View File

@@ -7,12 +7,12 @@
}:
buildPythonPackage rec {
version = "0.7.0";
version = "0.8.0";
pname = "xcffib";
src = fetchPypi {
inherit pname version;
sha256 = "12yc2r8967hknk829q1lbsw6b9z7qa25y8dx8kz6c9qnlc215vb8";
sha256 = "1lf5plgfi92ir6bsjyjb9yvqjbxzh2cag33c8jl435iaxmnh76f3";
};
patchPhase = ''

View File

@@ -8,11 +8,11 @@
buildPythonPackage rec {
pname = "xdis";
version = "3.8.10";
version = "4.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "b00f37296edf2a4fe7b67b5d861c342426d442666d241674fdfc333936bd59bf";
sha256 = "1ifakxxawyxw4w4p58m4xdc0c955miqyaq3dfbl386ipw0f50kyz";
};
checkInputs = [ pytest ];

View File

@@ -1,24 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
{ lib, buildPythonPackage, fetchFromGitHub
, pytest_3 }:
buildPythonPackage rec {
pname = "zxcvbn-python";
version = "4.4.24";
version = "4.4.27";
src = fetchPypi {
inherit pname version;
sha256 = "900b28cc5e96be4091d8778f19f222832890264e338765a1c1c09fca2db64b2d";
src = fetchFromGitHub {
owner = "dwolfhub";
repo = pname;
rev = "v${version}";
sha256 = "0w0sx9ssjks8da973cdv5xi87yjsf038jqxmzj2y26xvpyjsg2v2";
};
# No tests in archive
doCheck = false;
checkInputs = [
pytest_3
];
meta = {
description = "Python implementation of Dropbox's realistic password strength estimator, zxcvbn";
homepage = https://github.com/dwolfhub/zxcvbn-python;
license = with lib.licenses; [ mit ];
};
}
}