2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-socket
|
|
|
|
, pytest-mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "luddite";
|
|
|
|
version = "1.0.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jumptrading";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "8/7uwO5HLhyXYt+T6VUO/O7TN9+FfRlT8y0r5+CJ/l4=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pytest.ini \
|
|
|
|
--replace "--cov=luddite --cov-report=html --cov-report=term --no-cov-on-fail" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ setuptools ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook pytest-socket pytest-mock ];
|
2021-08-05 21:33:18 +00:00
|
|
|
pythonImportsCheck = [ "luddite" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Checks for out-of-date package versions";
|
|
|
|
homepage = "https://github.com/jumptrading/luddite";
|
|
|
|
license = licenses.asl20;
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ emilytrau ];
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
}
|