Merge pull request #61918 from r-ryantm/auto-update/python3.7-sniffio
python37Packages.sniffio: 1.0.0 -> 1.1.0
This commit is contained in:
commit
e4c40d2a8e
3 changed files with 44 additions and 7 deletions
34
pkgs/development/python-modules/curio/default.nix
Normal file
34
pkgs/development/python-modules/curio/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
|
|
@ -335,6 +335,8 @@ in {
|
|||
|
||||
cozy = callPackage ../development/python-modules/cozy { };
|
||||
|
||||
curio = callPackage ../development/python-modules/curio { };
|
||||
|
||||
dendropy = callPackage ../development/python-modules/dendropy { };
|
||||
|
||||
dependency-injector = callPackage ../development/python-modules/dependency-injector { };
|
||||
|
|
Loading…
Reference in a new issue