mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 21:18:28 +03:00
python3Packages.trio-asyncio: init at 0.12.0
This commit is contained in:
parent
3ff5348c38
commit
871ec44976
47
pkgs/development/python-modules/trio-asyncio/default.nix
Normal file
47
pkgs/development/python-modules/trio-asyncio/default.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, trio
|
||||
, outcome
|
||||
, sniffio
|
||||
, pytest-trio
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "trio-asyncio";
|
||||
version = "0.12.0";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "trio_asyncio";
|
||||
inherit version;
|
||||
sha256 = "824be23b0c678c0df942816cdb57b92a8b94f264fffa89f04626b0ba2d009768";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'pytest-runner'" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
trio
|
||||
outcome
|
||||
sniffio
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-trio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
"tests/python" # tries to import internal API test.test_asyncio
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Re-implementation of the asyncio mainloop on top of Trio";
|
||||
homepage = "https://github.com/python-trio/trio-asyncio";
|
||||
license = with licenses; [ asl20 /* or */ mit ];
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
@ -9750,6 +9750,8 @@ in {
|
||||
|
||||
trio = callPackage ../development/python-modules/trio { };
|
||||
|
||||
trio-asyncio = callPackage ../development/python-modules/trio-asyncio { };
|
||||
|
||||
trueskill = callPackage ../development/python-modules/trueskill { };
|
||||
|
||||
trustme = callPackage ../development/python-modules/trustme { };
|
||||
|
Loading…
Reference in New Issue
Block a user