Merge pull request #301529 from fabaff/arsenic-fix
python312Packages.arsenic: add patch to replace distutils
This commit is contained in:
@@ -1,26 +1,27 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, attrs
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonRelaxDepsHook
|
||||
, pythonOlder
|
||||
, structlog
|
||||
{
|
||||
lib,
|
||||
aiohttp,
|
||||
attrs,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
packaging,
|
||||
poetry-core,
|
||||
pythonRelaxDepsHook,
|
||||
pythonOlder,
|
||||
structlog,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "arsenic";
|
||||
version = "21.8";
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "HENNGE";
|
||||
repo = pname;
|
||||
repo = "arsenic";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-fsLo22PR9WdX2FazPgr8B8dFq6EM1LLTpRFGEm/ymCE=";
|
||||
};
|
||||
@@ -32,33 +33,31 @@ buildPythonPackage rec {
|
||||
url = "https://github.com/HENNGE/arsenic/commit/ca82894a5f1e832ab9283a245258b334bdd48855.patch";
|
||||
hash = "sha256-ECCUaJF4MRmFOKH1C6HowJ+zmbEPPiS7h9DlKw5otZc=";
|
||||
})
|
||||
# Replace distutils with packaging, https://github.com/HENNGE/arsenic/pull/166
|
||||
(fetchpatch {
|
||||
name = "replace-distutils.patch";
|
||||
url = "https://github.com/HENNGE/arsenic/commit/440faed7d2a8fbd635a135c007051ea494e72873.patch";
|
||||
hash = "sha256-QbOH6EdFKZxm1VaXRiTbJ3zIzEKVet9GUQDaJnmSNQw=";
|
||||
})
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"structlog"
|
||||
];
|
||||
pythonRelaxDeps = [ "structlog" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
attrs
|
||||
packaging
|
||||
structlog
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# Depends on asyncio_extras which is not longer maintained
|
||||
# Test depends on asyncio_extras which is not longer maintained
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"arsenic"
|
||||
];
|
||||
pythonImportsCheck = [ "arsenic" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "WebDriver implementation for asyncio and asyncio-compatible frameworks";
|
||||
|
||||
Reference in New Issue
Block a user