git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #61918 from r-ryantm/auto-update/python3.7-sniffio

python37Packages.sniffio: 1.0.0 -> 1.1.0

commite4c40d2a8e780c10332c8945285a00adbcc02d3d authorMario Rodas <marsam@users.noreply.github.com> dateWed 22 May 2019, 23:37 (8 years ago) parentc90867de6a25e5
3 files changed+44−7
pkgs/development/python-modules/curio/default.nix+34 pkgs/development/python-modules/sniffio/default.nix+8−7 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/curio/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, isPy3k
5+, pytest
6+, sphinx
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "curio";
11+ version = "0.9";
12+
13+ src = fetchPypi {
14+ inherit pname version;
15+ sha256 = "51d1a7b49b4f8dd1486ac785c72d522962e93ccfdcfc1f818f5c7553a307b5ef";
16+ };
17+
18+ disabled = !isPy3k;
19+
20+ checkInputs = [ pytest sphinx ];
21+
22+ # test_aside_basic times out,
23+ # test_aside_cancel fails because modifies PYTHONPATH and cant find pytest
24+ checkPhase = ''
25+ pytest --deselect tests/test_task.py::test_aside_basic --deselect tests/test_task.py::test_aside_cancel
26+ '';
27+
28+ meta = with lib; {
29+ homepage = "https://github.com/dabeaz/curio";
30+ description = "Library for performing concurrent I/O with coroutines in Python 3";
31+ license = licenses.bsd3;
32+ maintainers = [ maintainers.marsam ];
33+ };
34+}
pkgs/development/python-modules/sniffio/default.nix+8−7
@@ -1,26 +1,27 @@
11{ buildPythonPackage, lib, fetchPypi, glibcLocales, isPy3k, contextvars
2−, pythonOlder
2+, pythonOlder, pytest, curio
33}:
44
55buildPythonPackage rec {
66 pname = "sniffio";
7− version = "1.0.0";
7+ version = "1.1.0";
88
99 src = fetchPypi {
1010 inherit pname version;
11− sha256 = "1dzb0nx3m1hpjgsv6s6w5ac2jcmywcz6gqnfkw8rwz1vkr1836rf";
11+ sha256 = "8e3810100f69fe0edd463d02ad407112542a11ffdc29f67db2bf3771afb87a21";
1212 };
1313
14− # breaks with the following error:
15− # > TypeError: 'encoding' is an invalid keyword argument for this function
1614 disabled = !isPy3k;
1715
1816 buildInputs = [ glibcLocales ];
1917
2018 propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [ contextvars ];
2119
22− # no tests distributed with PyPI
23− doCheck = false;
20+ checkInputs = [ pytest curio ];
21+
22+ checkPhase = ''
23+ pytest
24+ '';
2425
2526 meta = with lib; {
2627 homepage = https://github.com/python-trio/sniffio;
pkgs/top-level/python-packages.nix+2
@@ -335,6 +335,8 @@ in {
335335
336336 cozy = callPackage ../development/python-modules/cozy { };
337337
338+ curio = callPackage ../development/python-modules/curio { };
339+
338340 dendropy = callPackage ../development/python-modules/dendropy { };
339341
340342 dependency-injector = callPackage ../development/python-modules/dependency-injector { };