maigret: 0.4.3 -> 0.4.4
This commit is contained in:
parent
f3ec61b6df
commit
11075c2658
|
@ -1,19 +1,21 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, python3
|
, python3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "maigret";
|
pname = "maigret";
|
||||||
version = "0.4.3";
|
version = "0.4.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "soxoj";
|
owner = "soxoj";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-0Ni4rXVu3ZQyHBvD3IpV0i849CnumLj+n6/g4sMhHEs=";
|
hash = "sha256-Z8SnA7Z5+oKW0AOaNf+c/zR30lrPFmXaxxKkbnDXNNs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ python3.pkgs.pythonRelaxDepsHook ];
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
aiodns
|
aiodns
|
||||||
aiohttp
|
aiohttp
|
||||||
|
@ -24,6 +26,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
certifi
|
certifi
|
||||||
chardet
|
chardet
|
||||||
|
cloudscraper
|
||||||
colorama
|
colorama
|
||||||
future
|
future
|
||||||
html5lib
|
html5lib
|
||||||
|
@ -60,14 +63,8 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
pythonRelaxDeps = true;
|
||||||
# Remove all version pinning
|
pythonRemoveDeps = [ "future-annotations" ];
|
||||||
sed -i -e "s/==[0-9.]*//" requirements.txt
|
|
||||||
|
|
||||||
# We are not build for Python < 3.7
|
|
||||||
substituteInPlace requirements.txt \
|
|
||||||
--replace "future-annotations" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
# DeprecationWarning: There is no current event loop
|
# DeprecationWarning: There is no current event loop
|
||||||
|
@ -82,6 +79,10 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
"test_pdf_report"
|
"test_pdf_report"
|
||||||
"test_self_check_db_negative_enabled"
|
"test_self_check_db_negative_enabled"
|
||||||
"test_self_check_db_positive_enable"
|
"test_self_check_db_positive_enable"
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
# AsyncioProgressbarExecutor is slower on darwin than it should be,
|
||||||
|
# Upstream issue: https://github.com/soxoj/maigret/issues/679
|
||||||
|
"test_asyncio_progressbar_executor"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
|
|
Loading…
Reference in a new issue