diff options
author | Spencer Baugh <sbaugh@catern.com> | 2018-05-08 22:19:48 +0000 |
---|---|---|
committer | Spencer Baugh <sbaugh@catern.com> | 2018-05-11 17:00:42 +0000 |
commit | f78c25239e9aaaec67851ce3a5af150b49d6ac49 (patch) | |
tree | c8a0631c71ce4ed7d96f087ad5f46aa58c8be269 | |
parent | c983bbb557d5d201015d71868796777fab46d52b (diff) | |
download | nixlib-f78c25239e9aaaec67851ce3a5af150b49d6ac49.tar nixlib-f78c25239e9aaaec67851ce3a5af150b49d6ac49.tar.gz nixlib-f78c25239e9aaaec67851ce3a5af150b49d6ac49.tar.bz2 nixlib-f78c25239e9aaaec67851ce3a5af150b49d6ac49.tar.lz nixlib-f78c25239e9aaaec67851ce3a5af150b49d6ac49.tar.xz nixlib-f78c25239e9aaaec67851ce3a5af150b49d6ac49.tar.zst nixlib-f78c25239e9aaaec67851ce3a5af150b49d6ac49.zip |
pythonPackages.trio: init at 0.4.0
-rw-r--r-- | pkgs/development/python-modules/trio/default.nix | 42 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/trio/default.nix b/pkgs/development/python-modules/trio/default.nix new file mode 100644 index 000000000000..2bd607170fd5 --- /dev/null +++ b/pkgs/development/python-modules/trio/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7a7616e7fff2..4a4717ea6a73 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { }; |