Merge pull request #264656 from r-ryantm/auto-update/luddite

luddite: 1.0.2 -> 1.0.3
This commit is contained in:
Emily Trau 2023-12-03 17:53:54 +11:00 committed by GitHub
commit 0323d7f469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,31 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, packaging
, pytestCheckHook
, pytest-socket
, pytest-mock
}:
buildPythonPackage rec {
pname = "luddite";
version = "1.0.2";
version = "1.0.3";
src = fetchFromGitHub {
owner = "jumptrading";
repo = pname;
rev = "v${version}";
sha256 = "8/7uwO5HLhyXYt+T6VUO/O7TN9+FfRlT8y0r5+CJ/l4=";
hash = "sha256-JXIM7/5LO95oabM16GwAt3v3a8uldGpGXDWmVic8Ins=";
};
postPatch = ''
substituteInPlace pytest.ini \
--replace "--cov=luddite --cov-report=html --cov-report=term --no-cov-on-fail" ""
--replace "--cov=luddite --cov-report=html --cov-report=term --no-cov-on-fail" "" \
--replace "--disable-socket" ""
'';
propagatedBuildInputs = [ setuptools ];
propagatedBuildInputs = [ packaging ];
nativeCheckInputs = [ pytestCheckHook pytest-socket pytest-mock ];
nativeCheckInputs = [ pytestCheckHook pytest-mock ];
pythonImportsCheck = [ "luddite" ];
meta = with lib; {