python312Packages.yarl: 1.9.4 -> 1.13.1
Diff: https://github.com/aio-libs/yarl/compare/refs/tags/v1.9.4...v1.13.1 Changelog: https://github.com/aio-libs/yarl/blob/v1.13.1/CHANGES.rst
This commit is contained in:
committed by
Martin Weinelt
parent
9423bdbb85
commit
2c2d719857
@@ -1,45 +1,43 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
cython,
|
||||
expandvars,
|
||||
setuptools,
|
||||
idna,
|
||||
multidict,
|
||||
typing-extensions,
|
||||
pytest-cov-stub,
|
||||
pytest-xdist,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "yarl";
|
||||
version = "1.9.4";
|
||||
version = "1.13.1";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-Vm24ZxfPgIC5m1iwg7dzqQiuQPBmgeh+WJqXb6+CRr8=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "aio-libs";
|
||||
repo = "yarl";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-I6/c5Q6/SRw8PIW4rPLKhVRVPRIC+n+Cz+UrKn5Pv/0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/cov/d' pytest.ini
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
cython
|
||||
expandvars
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
idna
|
||||
multidict
|
||||
] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
# don't import yarl from ./ so the C extension is available
|
||||
@@ -47,6 +45,7 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-cov-stub
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user