nixpkgs/pkgs/development/python-modules/curio/default.nix

39 lines
961 B
Nix
Raw Normal View History

2019-05-23 05:23:41 +01:00
{ 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 ];
__darwinAllowLocalNetworking = true;
2019-05-23 05:23:41 +01:00
# test_aside_basic times out,
# test_aside_cancel fails because modifies PYTHONPATH and cant find pytest
checkPhase = ''
2019-05-29 22:31:28 +01:00
# __pycache__ was packaged accidentally, https://github.com/dabeaz/curio/issues/301
rm -r tests/__pycache__
2019-05-23 05:23:41 +01:00
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 ];
};
}