python311Packages.trio: refactor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, stdenv
|
||||
|
||||
@@ -42,21 +42,18 @@ buildPythonPackage rec {
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-m0H1mTrSwOX2LQrMoyDsZX/bayosIrjHrtbK8VRHXE4=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-trio";
|
||||
repo = "trio";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-JQ493U4WINOG6ob4IzfNQt5Lgs3DmEM2BDwbae7Bvsw=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/trio/_tests/test_subprocess.py \
|
||||
--replace "/bin/sleep" "${coreutils}/bin/sleep"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
attrs
|
||||
idna
|
||||
outcome
|
||||
@@ -103,11 +100,8 @@ buildPythonPackage rec {
|
||||
"src/trio/_tests/tools/test_gen_exports.py"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-W" "ignore::DeprecationWarning"
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/python-trio/trio/blob/v${version}/docs/source/history.rst";
|
||||
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 ];
|
||||
|
||||
Reference in New Issue
Block a user