218ac50fd4
Fixes the build for `python3Packages.trio' for the next ZHF iteration. Please refer to the Hydra build for further reference: https://hydra.nixos.org/build/80617356 `python3Packages.sniffio` is needed for the build, otherwise the build aborts with an error like this: ``` Could not find a version that satisfies the requirement sniffio (from trio==0.6.0) (from versions: ) No matching distribution found for sniffio (from trio==0.6.0) ``` See #45960
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
, attrs
|
|
, sortedcontainers
|
|
, async_generator
|
|
, idna
|
|
, outcome
|
|
, contextvars
|
|
, pytest
|
|
, pyopenssl
|
|
, trustme
|
|
, sniffio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "trio";
|
|
version = "0.6.0";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "7a80c10b89068950aa649edd4b09a6f56236642c2c2e648b956289d2301fdb9e";
|
|
};
|
|
|
|
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
|
|
sniffio
|
|
] ++ 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 ];
|
|
};
|
|
}
|