1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
64 lines
1.6 KiB
Nix
64 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
attrs,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
packaging,
|
|
poetry-core,
|
|
structlog,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "arsenic";
|
|
version = "21.8";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "HENNGE";
|
|
repo = "arsenic";
|
|
tag = version;
|
|
hash = "sha256-fsLo22PR9WdX2FazPgr8B8dFq6EM1LLTpRFGEm/ymCE=";
|
|
};
|
|
|
|
patches = [
|
|
# Switch to poetry-core, https://github.com/HENNGE/arsenic/pull/160
|
|
(fetchpatch {
|
|
name = "switch-to-poetry-core.patch";
|
|
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" ];
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
attrs
|
|
packaging
|
|
structlog
|
|
];
|
|
|
|
# Test depends on asyncio_extras which is not longer maintained
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "arsenic" ];
|
|
|
|
meta = {
|
|
description = "WebDriver implementation for asyncio and asyncio-compatible frameworks";
|
|
homepage = "https://github.com/HENNGE/arsenic/";
|
|
changelog = "https://github.com/HENNGE/arsenic/releases/tag/${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|