mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
pythonPackages.trio: init at 0.4.0
This commit is contained in:
parent
c983bbb557
commit
f78c25239e
42
pkgs/development/python-modules/trio/default.nix
Normal file
42
pkgs/development/python-modules/trio/default.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
||||
, attrs
|
||||
, sortedcontainers
|
||||
, async_generator
|
||||
, idna
|
||||
, outcome
|
||||
, contextvars
|
||||
, pytest
|
||||
, pyopenssl
|
||||
, trustme
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "trio";
|
||||
version = "0.4.0";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ib1x47knlad9pljb64ywfiv6m3dfrqqjwka6j1b73hixmszb5h4";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pyopenssl trustme ];
|
||||
# It appears that the build sandbox doesn't include /etc/services, and these tests try to use it.
|
||||
checkPhase = ''
|
||||
py.test -k 'not test_getnameinfo and not test_SocketType_resolve and not test_getprotobyname'
|
||||
'';
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
sortedcontainers
|
||||
async_generator
|
||||
idna
|
||||
outcome
|
||||
] ++ lib.optionals (pythonOlder "3.7") [ contextvars ];
|
||||
|
||||
meta = {
|
||||
description = "An async/await-native I/O library for humans and snake people";
|
||||
homepage = https://github.com/python-trio/trio;
|
||||
license = with lib.licenses; [ mit asl20 ];
|
||||
maintainers = with lib.maintainers; [ catern ];
|
||||
};
|
||||
}
|
@ -440,6 +440,8 @@ in {
|
||||
|
||||
trustme = callPackage ../development/python-modules/trustme {};
|
||||
|
||||
trio = callPackage ../development/python-modules/trio {};
|
||||
|
||||
tokenserver = callPackage ../development/python-modules/tokenserver {};
|
||||
|
||||
toml = callPackage ../development/python-modules/toml { };
|
||||
|
Loading…
Reference in New Issue
Block a user